mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 03:29:03 +08:00
Clean up whitespace
This commit is contained in:
parent
fc9c1045c9
commit
e36f78dd35
@ -71,12 +71,12 @@ class ObjectsModel(ListModel):
|
||||
#check if we already have an instance of the object based on name
|
||||
duplicate = False
|
||||
for n in namecount:
|
||||
if name == n["name"]:
|
||||
name = "{0}({1})".format(name, n["count"])
|
||||
node.setName(name)
|
||||
n["count"] = n["count"]+1
|
||||
duplicate = True
|
||||
|
||||
if name == n["name"]:
|
||||
name = "{0}({1})".format(name, n["count"])
|
||||
node.setName(name)
|
||||
n["count"] = n["count"]+1
|
||||
duplicate = True
|
||||
|
||||
if not duplicate:
|
||||
namecount.append({"name" : name, "count" : 1})
|
||||
|
||||
|
@ -256,7 +256,7 @@ class StartSliceJob(Job):
|
||||
mesh_data = object.getMeshData()
|
||||
rot_scale = object.getWorldTransformation().getTransposed().getData()[0:3, 0:3]
|
||||
translate = object.getWorldTransformation().getData()[:3, 3]
|
||||
|
||||
|
||||
# This effectively performs a limited form of MeshData.getTransformed that ignores normals.
|
||||
verts = mesh_data.getVertices()
|
||||
verts = verts.dot(rot_scale)
|
||||
|
Loading…
x
Reference in New Issue
Block a user