Skip to content

Commit 4964e73

Browse files
committed
Ensure layers with same name are exported only once
1 parent 7fa6cc8 commit 4964e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mvr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ def get_or_create_layer(name, uuid_):
13281328
for layer in mvr_layers:
13291329
if uuid_ and layer.uuid == uuid_:
13301330
return layer
1331-
if not uuid_ and layer.name == name:
1331+
if layer.name == name:
13321332
return layer
13331333
layer = pymvr.Layer(name=name, uuid=uuid_)
13341334
layer.child_list = pymvr.ChildList()

0 commit comments

Comments
 (0)