Skip to content

Commit

Permalink
MVR import: link collection only if it is not itself
Browse files Browse the repository at this point in the history
  • Loading branch information
vanous committed Jul 23, 2024
1 parent 453c2a3 commit 2f126a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mvr.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def add_mvr_object(idx, node, mtx, collect, file=""):
obj_mtx = get_matrix(geometry, mscale)
extract_mvr_object(file, mvr_scene, folder, extracted)
object_collect = add_mvr_object(idx, geometry, obj_mtx, active_collect, file)
if object_collect and object_collect.name not in collection.children:
if object_collect and object_collect.name not in collection.children and object_collect != collection:
collection.children.link(object_collect)

for idx, symbol in enumerate(symbols):
Expand Down

0 comments on commit 2f126a6

Please sign in to comment.