mirror of
https://github.com/blender/blender-addons.git
synced 2025-07-23 00:48:26 +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
|
collection = scene.collection
|
||||||
case _:
|
case _:
|
||||||
collection = bpy.context.collection
|
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:
|
if RELEASE_TEST:
|
||||||
# for release testing
|
# for release testing
|
||||||
|
Reference in New Issue
Block a user