Small update about the preset and selected mesh exported

This commit is contained in:
2024-05-04 17:51:29 +02:00
parent e9858cb55c
commit 85f5f3c931
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class ExportForFange(bpy.types.Operator):
print(f'[Pipeline] Select all mesh inside the collection "{child.name}"') print(f'[Pipeline] Select all mesh inside the collection "{child.name}"')
for ob in child.all_objects: for ob in child.all_objects:
print(f'\tLook "{ob.name}", his type are "{type(ob.data)}"') print(f'\tLook "{ob.name}", his type are "{type(ob.data)}"')
if isinstance(ob.data, bpy.types.Mesh): if isinstance(ob.data, bpy.types.Mesh) or isinstance(ob.data, bpy.types.Empty):
ob.select_set(True) ob.select_set(True)
# TODO The plugin export only the garden building # TODO The plugin export only the garden building
+1 -1
View File
@@ -10,7 +10,7 @@ op.apply_unit_scale = True
op.apply_scale_options = 'FBX_SCALE_NONE' op.apply_scale_options = 'FBX_SCALE_NONE'
op.use_space_transform = True op.use_space_transform = True
op.bake_space_transform = True op.bake_space_transform = True
op.object_types = {'MESH'} op.object_types = {'MESH', 'EMPTY'}
op.use_mesh_modifiers = True op.use_mesh_modifiers = True
op.use_mesh_modifiers_render = True op.use_mesh_modifiers_render = True
op.mesh_smooth_type = 'OFF' op.mesh_smooth_type = 'OFF'