diff --git a/cura/ObjectsModel.py b/cura/ObjectsModel.py index 1ac0c6247a..4f3d42e7fe 100644 --- a/cura/ObjectsModel.py +++ b/cura/ObjectsModel.py @@ -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}) diff --git a/plugins/CuraEngineBackend/StartSliceJob.py b/plugins/CuraEngineBackend/StartSliceJob.py index 4e6c53c4fb..2430485e30 100644 --- a/plugins/CuraEngineBackend/StartSliceJob.py +++ b/plugins/CuraEngineBackend/StartSliceJob.py @@ -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)