FBX: Enable the Collection exporter feature #105273

Merged
Jesse Yurkovich merged 6 commits from deadpin/blender-addons:fbx-collectionexport into main 2024-04-16 05:13:36 +02:00
Showing only changes of commit 0099da909e - Show all commits

View File

@ -565,7 +565,7 @@ class ExportFBX(bpy.types.Operator, ExportHelper):
# Are we inside the File browser # Are we inside the File browser
is_file_browser = context.space_data.type == 'FILE_BROWSER' is_file_browser = context.space_data.type == 'FILE_BROWSER'
export_main(layout, self) export_main(layout, self, is_file_browser)
export_panel_include(layout, self, is_file_browser) export_panel_include(layout, self, is_file_browser)
export_panel_transform(layout, self) export_panel_transform(layout, self)
export_panel_geometry(layout, self) export_panel_geometry(layout, self)
@ -597,16 +597,17 @@ class ExportFBX(bpy.types.Operator, ExportHelper):
return export_fbx_bin.save(self, context, **keywords) return export_fbx_bin.save(self, context, **keywords)
def export_main(layout, operator): def export_main(layout, operator, is_file_browser):
row = layout.row(align=True) row = layout.row(align=True)
row.prop(operator, "path_mode") row.prop(operator, "path_mode")
sub = row.row(align=True) sub = row.row(align=True)
sub.enabled = (operator.path_mode == 'COPY') sub.enabled = (operator.path_mode == 'COPY')
sub.prop(operator, "embed_textures", text="", icon='PACKAGE' if operator.embed_textures else 'UGLYPACKAGE') sub.prop(operator, "embed_textures", text="", icon='PACKAGE' if operator.embed_textures else 'UGLYPACKAGE')
row = layout.row(align=True) if is_file_browser:
row.prop(operator, "batch_mode") row = layout.row(align=True)
sub = row.row(align=True) row.prop(operator, "batch_mode")
sub.prop(operator, "use_batch_own_dir", text="", icon='NEWFOLDER') sub = row.row(align=True)
sub.prop(operator, "use_batch_own_dir", text="", icon='NEWFOLDER')
def export_panel_include(layout, operator, is_file_browser): def export_panel_include(layout, operator, is_file_browser):