mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 22:35:54 +08:00
Clean up whitespace
This commit is contained in:
parent
fc9c1045c9
commit
e36f78dd35
@ -71,11 +71,11 @@ 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})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user