From 2f126a6a9280aae64a712b3577e872d680d76fa5 Mon Sep 17 00:00:00 2001 From: vanous Date: Tue, 23 Jul 2024 22:17:18 +0200 Subject: [PATCH] MVR import: link collection only if it is not itself --- mvr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mvr.py b/mvr.py index 3eb597f5..6c943dd1 100644 --- a/mvr.py +++ b/mvr.py @@ -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):