Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_export_unreal_psk_psa.py')
-rw-r--r--io_export_unreal_psk_psa.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index 52c06ca0..8c208c5a 100644
--- a/io_export_unreal_psk_psa.py
+++ b/io_export_unreal_psk_psa.py
@@ -1476,7 +1476,8 @@ class ExportUDKAnimData(bpy.types.Operator):
psaexportbool = BoolProperty(name="Export PSA", description="Export Action Set (Animation Data)", default= True)
actionexportall = BoolProperty(name="All Actions", description="This will export all the actions that matches the current armature.", default=False)
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -1507,7 +1508,8 @@ class VIEW3D_PT_unrealtools_objectmode(bpy.types.Panel):
bl_region_type = "TOOLS"
bl_label = "Unreal Tools"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object
def draw(self, context):