Fixed and added some strings

This commit is contained in:
Colin Basnett
2024-06-30 15:50:18 -07:00
parent 09895e1fa1
commit eb5a9ed564
2 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,6 @@ def get_mesh_objects(objects: Iterable[Object]) -> List[Tuple[Object, Optional[O
if obj.type == 'MESH': if obj.type == 'MESH':
mesh_objects.append((obj, None)) mesh_objects.append((obj, None))
elif obj.instance_collection: elif obj.instance_collection:
# TODO: This probably needs to recurse.
for instance_object in obj.instance_collection.all_objects: for instance_object in obj.instance_collection.all_objects:
if instance_object.type == 'MESH': if instance_object.type == 'MESH':
mesh_objects.append((instance_object, obj)) mesh_objects.append((instance_object, obj))

View File

@@ -85,6 +85,7 @@ class ASE_OT_export(Operator, ExportHelper):
bl_label = 'Export ASE' bl_label = 'Export ASE'
bl_space_type = 'PROPERTIES' bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW' bl_region_type = 'WINDOW'
bl_description = 'Export selected objects to ASE'
filename_ext = '.ase' filename_ext = '.ase'
filter_glob: StringProperty(default="*.ase", options={'HIDDEN'}, maxlen=255) filter_glob: StringProperty(default="*.ase", options={'HIDDEN'}, maxlen=255)
use_raw_mesh_data: BoolProperty(default=False, name='Raw Mesh Data', description='No modifiers will be evaluated as part of the exported mesh') use_raw_mesh_data: BoolProperty(default=False, name='Raw Mesh Data', description='No modifiers will be evaluated as part of the exported mesh')
@@ -126,7 +127,7 @@ class ASE_OT_export(Operator, ExportHelper):
try: try:
ase = ASEBuilder().build(context, options, context.selected_objects) ase = ASEBuilder().build(context, options, context.selected_objects)
ASEWriter().write(self.filepath, ase) ASEWriter().write(self.filepath, ase)
self.report({'INFO'}, 'ASE exported successful') self.report({'INFO'}, 'ASE exported successfully')
return {'FINISHED'} return {'FINISHED'}
except ASEBuilderError as e: except ASEBuilderError as e:
self.report({'ERROR'}, str(e)) self.report({'ERROR'}, str(e))
@@ -138,6 +139,7 @@ class ASE_OT_export_collections(Operator, ExportHelper):
bl_label = 'Export Collections to ASE' bl_label = 'Export Collections to ASE'
bl_space_type = 'PROPERTIES' bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW' bl_region_type = 'WINDOW'
bl_description = 'Batch export collections to ASE. The name of the collection will be used as the filename'
filename_ext = '.ase' filename_ext = '.ase'
filter_glob: StringProperty( filter_glob: StringProperty(
default="*.ase", default="*.ase",