IO: Importing multiple 3DS files at once #105227

Merged
Sebastian Sille merged 2 commits from :roblop-patch-1 into main 2024-03-08 19:21:52 +01:00
Showing only changes of commit 6acdb4e2f7 - Show all commits

View File

@ -13,6 +13,7 @@ from bpy.props import (
EnumProperty, EnumProperty,
FloatProperty, FloatProperty,
StringProperty, StringProperty,
CollectionProperty,
) )
import bpy import bpy
bl_info = { bl_info = {
@ -47,6 +48,8 @@ class Import3DS(bpy.types.Operator, ImportHelper):
filename_ext = ".3ds" filename_ext = ".3ds"
filter_glob: StringProperty(default="*.3ds", options={'HIDDEN'}) filter_glob: StringProperty(default="*.3ds", options={'HIDDEN'})
filepath: StringProperty(subtype='FILE_PATH', options={'SKIP_SAVE'}) filepath: StringProperty(subtype='FILE_PATH', options={'SKIP_SAVE'})
files: CollectionProperty(type=bpy.types.OperatorFileListElement, options={'HIDDEN', 'SKIP_SAVE'})
directory: StringProperty(subtype='DIR_PATH')
constrain_size: FloatProperty( constrain_size: FloatProperty(
name="Constrain Size", name="Constrain Size",