move a settings' location

This commit is contained in:
yyc12345 2020-07-20 16:14:39 +08:00
parent 0dc526535c
commit 5b2314dbf8
2 changed files with 8 additions and 6 deletions

View File

@ -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'}

View File

@ -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")
col.prop(self, "external_folder")
col.prop(self, "no_component_collection")