Action selection now works in the PSA exporter, and actions that likely correspond to the selected armature are deselected by default (will save a bit of time!)

This commit is contained in:
Colin Basnett
2019-12-12 15:07:22 -08:00
parent d13cd881a4
commit 3001501006
3 changed files with 51 additions and 10 deletions

View File

@@ -42,12 +42,15 @@ classes = [
psa_operator.ActionListItem
]
def psk_menu_func(self, context):
self.layout.operator(psk_operator.PskExportOperator.bl_idname, text ='Unreal PSK (.psk)')
def psa_menu_func(self, context):
self.layout.operator(psa_operator.PsaExportOperator.bl_idname, text='Unreal PSA (.psa)')
def register():
from bpy.utils import register_class
for cls in classes:
@@ -57,6 +60,7 @@ def register():
bpy.types.Scene.psa_action_list = CollectionProperty(type=psa_operator.ActionListItem)
bpy.types.Scene.psa_action_list_index = IntProperty(name='index for list??', default=0)
def unregister():
del bpy.types.Scene.psa_action_list_index
del bpy.types.Scene.psa_action_list
@@ -66,5 +70,6 @@ def unregister():
for cls in reversed(classes):
unregister_class(cls)
if __name__ == '__main__':
register()