1
0
mirror of https://github.com/DarklightGames/io_scene_psk_psa.git synced 2024-11-15 10:47:39 +01:00

Minor formatting changes

This commit is contained in:
Colin Basnett 2022-02-02 18:35:39 -08:00
parent a95c9302c8
commit 70fc7d45ac
3 changed files with 7 additions and 6 deletions

View File

@ -78,8 +78,10 @@ def register():
def unregister(): def unregister():
del bpy.types.Scene.psa_export
del bpy.types.Scene.psa_import del bpy.types.Scene.psa_import
del bpy.types.Scene.psk_import
del bpy.types.Scene.psa_export
del bpy.types.Scene.psk_export
bpy.types.TOPBAR_MT_file_export.remove(psk_export_menu_func) bpy.types.TOPBAR_MT_file_export.remove(psk_export_menu_func)
bpy.types.TOPBAR_MT_file_import.remove(psk_import_menu_func) bpy.types.TOPBAR_MT_file_import.remove(psk_import_menu_func)
bpy.types.TOPBAR_MT_file_export.remove(psa_export_menu_func) bpy.types.TOPBAR_MT_file_export.remove(psa_export_menu_func)

View File

@ -110,7 +110,6 @@ class PsaExportOperator(Operator, ExportHelper):
item_layout.enabled = is_bone_filter_mode_item_available(context, identifier) item_layout.enabled = is_bone_filter_mode_item_available(context, identifier)
if property_group.bone_filter_mode == 'BONE_GROUPS': if property_group.bone_filter_mode == 'BONE_GROUPS':
box = layout.box()
row = box.row() row = box.row()
rows = max(3, min(len(property_group.bone_group_list), 10)) rows = max(3, min(len(property_group.bone_group_list), 10))
row.template_list('PSX_UL_BoneGroupList', '', property_group, 'bone_group_list', property_group, 'bone_group_list_index', rows=rows) row.template_list('PSX_UL_BoneGroupList', '', property_group, 'bone_group_list', property_group, 'bone_group_list_index', rows=rows)

View File

@ -249,10 +249,10 @@ class PSA_UL_ImportActionList(UIList):
def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index): def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
row = layout.row(align=True) row = layout.row(align=True)
split = row.split(align=True, factor=0.75) split = row.split(align=True, factor=0.75)
action_col = split.row(align=True) column = split.row(align=True)
action_col.alignment = 'LEFT' column.alignment = 'LEFT'
action_col.prop(item, 'is_selected', icon_only=True) column.prop(item, 'is_selected', icon_only=True)
action_col.label(text=item.action_name) column.label(text=item.action_name)
def draw_filter(self, context, layout): def draw_filter(self, context, layout):
row = layout.row() row = layout.row()