mirror of
https://github.com/blender/blender-addons.git
synced 2025-07-21 23:46:24 +00:00
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
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user