diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-05 19:58:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-05 19:58:52 +0400 |
commit | ebfb6490e11ae9ae0429737c1bf0e0cd64222f5a (patch) | |
tree | d6b7ff4e93a37043d83ceb5dbabfdf8bc2bab117 /io_export_unreal_psk_psa.py | |
parent | 8d94603a8de70935166a933d2fb0f9af369d567f (diff) |
update for changes in blender.
Diffstat (limited to 'io_export_unreal_psk_psa.py')
-rw-r--r-- | io_export_unreal_psk_psa.py | 6 |
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): |