fix: fix bug that there is no preset encoding names.

- fix the issue that there is no preset encoding names in list when enable plugin without any extra operations.
This commit is contained in:
2025-08-25 13:53:57 +08:00
parent e14729500c
commit b19800e37f
4 changed files with 30 additions and 17 deletions

View File

@ -18,6 +18,12 @@ class BBP_OT_export_virtools(bpy.types.Operator, UTIL_file_browser.ExportVirtool
return (
PROP_preferences.get_raw_preferences().has_valid_blc_tex_folder()
and bmap.is_bmap_available())
def invoke(self, context, event):
# preset virtools encoding if possible
self.preset_vt_encodings_if_possible(context)
# call parent invoke function (same reason written in IMPORT module)
return super().invoke(context, event)
def execute(self, context):
# check selecting first