Fix #105316: Error import dxf in scene collection #105317

Merged
Sebastian Sille merged 1 commits from RobLop/blender-addons:fix-#105316 into main 2024-05-08 12:56:10 +02:00

View File

@ -570,7 +570,7 @@ class IMPORT_OT_dxf(bpy.types.Operator):
collection = scene.collection
case _:
collection = bpy.context.collection
if collection.name not in scene.collection.children: scene.collection.children.link(collection)
if collection != scene.collection and collection.name not in scene.collection.children: scene.collection.children.link(collection)
if RELEASE_TEST:
# for release testing