From 85f5f3c931847e8a6730b0393b0725b7de6daf5b Mon Sep 17 00:00:00 2001 From: Aurelien Vaillant Date: Sat, 4 May 2024 17:51:29 +0200 Subject: [PATCH] Small update about the preset and selected mesh exported --- Fange Pipeline/ops.py | 2 +- presets/sm-unity-building.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Fange Pipeline/ops.py b/Fange Pipeline/ops.py index 8a5d47c..9809763 100644 --- a/Fange Pipeline/ops.py +++ b/Fange Pipeline/ops.py @@ -32,7 +32,7 @@ class ExportForFange(bpy.types.Operator): print(f'[Pipeline] Select all mesh inside the collection "{child.name}"') for ob in child.all_objects: 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) # TODO The plugin export only the garden building diff --git a/presets/sm-unity-building.py b/presets/sm-unity-building.py index cae0b10..0216491 100644 --- a/presets/sm-unity-building.py +++ b/presets/sm-unity-building.py @@ -10,7 +10,7 @@ op.apply_unit_scale = True op.apply_scale_options = 'FBX_SCALE_NONE' op.use_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_render = True op.mesh_smooth_type = 'OFF'