update to bm 1.2

This commit is contained in:
yyc12345 2020-09-06 10:11:48 +08:00
parent 1fe77d843e
commit ff24707186
2 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@ bl_info={
"name":"Ballance Blender Plugin", "name":"Ballance Blender Plugin",
"description":"Ballance mapping tools for Blender", "description":"Ballance mapping tools for Blender",
"author":"yyc12345", "author":"yyc12345",
"version":(1,0), "version":(1,1),
"blender":(2,83,0), "blender":(2,83,0),
"category":"Object", "category":"Object",
"support":"TESTING", "support":"TESTING",
@ -65,9 +65,9 @@ classes = (
) )
def menu_func_bm_import(self, context): def menu_func_bm_import(self, context):
self.layout.operator(bm_import_export.BALLANCE_OT_import_bm.bl_idname, text="Ballance Map (.bm)") self.layout.operator(bm_import_export.BALLANCE_OT_import_bm.bl_idname, text="Ballance Map (.bmx)")
def menu_func_bm_export(self, context): def menu_func_bm_export(self, context):
self.layout.operator(bm_import_export.BALLANCE_OT_export_bm.bl_idname, text="Ballance Map (.bm)") self.layout.operator(bm_import_export.BALLANCE_OT_export_bm.bl_idname, text="Ballance Map (.bmx)")
def menu_func_ballance_3d(self, context): def menu_func_ballance_3d(self, context):
layout = self.layout layout = self.layout
layout.menu(BALLANCE_MT_ThreeDViewerMenu.bl_idname) layout.menu(BALLANCE_MT_ThreeDViewerMenu.bl_idname)

View File

@ -7,11 +7,11 @@ from bpy_extras.image_utils import load_image
from . import utils, config from . import utils, config
class BALLANCE_OT_import_bm(bpy.types.Operator, bpy_extras.io_utils.ImportHelper): class BALLANCE_OT_import_bm(bpy.types.Operator, bpy_extras.io_utils.ImportHelper):
"""Load a Ballance Map File (BM file spec 1.1)""" """Load a Ballance Map File (BM file spec 1.2)"""
bl_idname = "ballance.import_bm" bl_idname = "ballance.import_bm"
bl_label = "Import BM " bl_label = "Import BM "
bl_options = {'PRESET', 'UNDO'} bl_options = {'PRESET', 'UNDO'}
filename_ext = ".bm" filename_ext = ".bmx"
texture_conflict_strategy: bpy.props.EnumProperty( texture_conflict_strategy: bpy.props.EnumProperty(
name="Texture name conflict", name="Texture name conflict",
@ -57,11 +57,11 @@ class BALLANCE_OT_import_bm(bpy.types.Operator, bpy_extras.io_utils.ImportHelper
return {'FINISHED'} return {'FINISHED'}
class BALLANCE_OT_export_bm(bpy.types.Operator, bpy_extras.io_utils.ExportHelper): class BALLANCE_OT_export_bm(bpy.types.Operator, bpy_extras.io_utils.ExportHelper):
"""Save a Ballance Map File (BM file spec 1.1)""" """Save a Ballance Map File (BM file spec 1.2)"""
bl_idname = "ballance.export_bm" bl_idname = "ballance.export_bm"
bl_label = 'Export BM' bl_label = 'Export BM'
bl_options = {'PRESET'} bl_options = {'PRESET'}
filename_ext = ".bm" filename_ext = ".bmx"
export_mode: bpy.props.EnumProperty( export_mode: bpy.props.EnumProperty(
name="Export mode", name="Export mode",