IO: Option to import each 3DS file on a new collection #105232

Merged
Sebastian Sille merged 6 commits from :roblop-patch-new-collection into main 2024-03-13 13:34:08 +01:00
Showing only changes of commit 9d2089eefb - Show all commits

View File

@ -107,6 +107,12 @@ class Import3DS(bpy.types.Operator, ImportHelper):
description="Read the 3D cursor location",
default=False,
)
new_collection: BoolProperty(
name="New collection",
description="Include on a new collection",
default=True,
)
def execute(self, context):
from . import import_3ds
@ -168,6 +174,9 @@ class MAX3DS_PT_import_include(bpy.types.Panel):
layrow = layout.row(align=True)
layrow.prop(operator, "use_cursor")
layrow.label(text="", icon='PIVOT_CURSOR' if operator.use_cursor else 'CURSOR')
layrow = layout.row(align=True)
layrow.prop(operator, "new_collection")
layrow.label(text="", icon='OUTLINER_COLLECTION' if operator.new_collection else 'COLLECTION_NEW')
class MAX3DS_PT_import_transform(bpy.types.Panel):