mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Clean up whitespace
This commit is contained in:
parent
fc9c1045c9
commit
e36f78dd35
2 changed files with 7 additions and 7 deletions
|
@ -71,12 +71,12 @@ class ObjectsModel(ListModel):
|
||||||
#check if we already have an instance of the object based on name
|
#check if we already have an instance of the object based on name
|
||||||
duplicate = False
|
duplicate = False
|
||||||
for n in namecount:
|
for n in namecount:
|
||||||
if name == n["name"]:
|
if name == n["name"]:
|
||||||
name = "{0}({1})".format(name, n["count"])
|
name = "{0}({1})".format(name, n["count"])
|
||||||
node.setName(name)
|
node.setName(name)
|
||||||
n["count"] = n["count"]+1
|
n["count"] = n["count"]+1
|
||||||
duplicate = True
|
duplicate = True
|
||||||
|
|
||||||
if not duplicate:
|
if not duplicate:
|
||||||
namecount.append({"name" : name, "count" : 1})
|
namecount.append({"name" : name, "count" : 1})
|
||||||
|
|
||||||
|
|
|
@ -256,7 +256,7 @@ class StartSliceJob(Job):
|
||||||
mesh_data = object.getMeshData()
|
mesh_data = object.getMeshData()
|
||||||
rot_scale = object.getWorldTransformation().getTransposed().getData()[0:3, 0:3]
|
rot_scale = object.getWorldTransformation().getTransposed().getData()[0:3, 0:3]
|
||||||
translate = object.getWorldTransformation().getData()[:3, 3]
|
translate = object.getWorldTransformation().getData()[:3, 3]
|
||||||
|
|
||||||
# This effectively performs a limited form of MeshData.getTransformed that ignores normals.
|
# This effectively performs a limited form of MeshData.getTransformed that ignores normals.
|
||||||
verts = mesh_data.getVertices()
|
verts = mesh_data.getVertices()
|
||||||
verts = verts.dot(rot_scale)
|
verts = verts.dot(rot_scale)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue