From 5b2314dbf8fab479f5b5674861fe2c33195ecbd1 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Mon, 20 Jul 2020 16:14:39 +0800 Subject: [PATCH] move a settings' location --- ballance_blender_plugin/bm_import_export.py | 6 +----- ballance_blender_plugin/preferences.py | 8 +++++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ballance_blender_plugin/bm_import_export.py b/ballance_blender_plugin/bm_import_export.py index 28d0014..93054ee 100644 --- a/ballance_blender_plugin/bm_import_export.py +++ b/ballance_blender_plugin/bm_import_export.py @@ -32,13 +32,9 @@ class ExportBM(bpy.types.Operator, bpy_extras.io_utils.ExportHelper): name="Export target", description="Which one will be exported", ) - no_component_suffix: bpy.props.StringProperty( - name="No component suffix", - description="The object which have this suffix will not be saved as component.", - ) def execute(self, context): - export_bm(context, self.filepath, self.export_mode, self.export_target, self.no_component_suffix) + export_bm(context, self.filepath, self.export_mode, self.export_target, "") #todo: fix no_component_suffix return {'FINISHED'} diff --git a/ballance_blender_plugin/preferences.py b/ballance_blender_plugin/preferences.py index 9bcb04a..33b5176 100644 --- a/ballance_blender_plugin/preferences.py +++ b/ballance_blender_plugin/preferences.py @@ -8,10 +8,16 @@ class BallanceBlenderPluginPreferences(bpy.types.AddonPreferences): description="The Ballance texture folder which will be used buy this plugin to get external texture.", ) + no_component_collection: bpy.props.StringProperty( + name="No component collection", + description="(Import) The object which stored in this collectiion will not be saved as component. (Export) All forced no component objects will be stored in this collection", + ) + def draw(self, context): layout = self.layout row = layout.row() col = row.column() - col.prop(self, "external_folder") \ No newline at end of file + col.prop(self, "external_folder") + col.prop(self, "no_component_collection") \ No newline at end of file