Skip to content

Commit 8127d2e

Browse files
RobLopSebastian Sille
RobLop
authored and
Sebastian Sille
committed
Fix #105316: Error import dxf in scene collection
Exclude the case of scene collection when importing to selected collection. Pull Request: https://projects.blender.org/blender/blender-addons/pulls/105317
1 parent 6fe582b commit 8127d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io_import_dxf/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def execute(self, context):
570570
collection = scene.collection
571571
case _:
572572
collection = bpy.context.collection
573-
if collection.name not in scene.collection.children: scene.collection.children.link(collection)
573+
if collection != scene.collection and collection.name not in scene.collection.children: scene.collection.children.link(collection)
574574

575575
if RELEASE_TEST:
576576
# for release testing

0 commit comments

Comments
 (0)