yyc12345
77315ffbea
- vt encodings in list showcase now works. - modify some usage of message_box to Operator.report to make it more like blender suggested.
29 lines
1.0 KiB
Python
29 lines
1.0 KiB
Python
import bpy
|
|
from . import PROP_preferences, UTIL_functions, UTIL_file_browser, UTIL_blender_mesh, UTIL_ioport_shared
|
|
|
|
class BBP_OT_export_bmfile(bpy.types.Operator, UTIL_file_browser.ExportBmxFile, UTIL_ioport_shared.ExportParams):
|
|
"""Save a Ballance Map File (BM File Spec 1.4)"""
|
|
bl_idname = "bbp.export_bmfile"
|
|
bl_label = "Export BM (Ballance Map) File"
|
|
bl_options = {'PRESET'}
|
|
|
|
@classmethod
|
|
def poll(cls, context):
|
|
return PROP_preferences.get_raw_preferences().has_valid_blc_tex_folder()
|
|
|
|
def execute(self, context):
|
|
self.report({'ERROR'}, 'This function not supported yet.')
|
|
# self.report({'INFO'}, "BM File Exporting Finished.")
|
|
return {'FINISHED'}
|
|
|
|
def draw(self, context):
|
|
layout = self.layout
|
|
layout.label(text = 'Export Target')
|
|
self.draw_export_params(context, layout.box())
|
|
|
|
def register() -> None:
|
|
bpy.utils.register_class(BBP_OT_export_bmfile)
|
|
|
|
def unregister() -> None:
|
|
bpy.utils.unregister_class(BBP_OT_export_bmfile)
|