diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-10-29 14:33:17 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-10-29 14:33:17 +0300 |
commit | 0de4052432b34680d4441704b99ae2238eae25a1 (patch) | |
tree | fa6a42d210541aac2c46930f689719022126d1ee /mocap/__init__.py | |
parent | 2b25d94bbd57906d4cd58b5aeb03916714b289f6 (diff) |
Fix a minor UI issue when object has animdata but no action, raise Blender version, add addon version.
Diffstat (limited to 'mocap/__init__.py')
-rw-r--r-- | mocap/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mocap/__init__.py b/mocap/__init__.py index 9f6dba47..62e3709f 100644 --- a/mocap/__init__.py +++ b/mocap/__init__.py @@ -21,7 +21,8 @@ bl_info = { "name": "Motion Capture Tools", "author": "Benjy Cook", - "blender": (2, 62, 0), + "blender": (2, 72, 0), + "version": (1, 0, 1), "location": "Object UI > Mocap tools", "description": "Various tools for working with motion capture animation", "warning": "", @@ -333,7 +334,7 @@ class MocapPanel(bpy.types.Panel): mapRow.operator("mocap.savemapping", text='Save mapping') mapRow.operator("mocap.loadmapping", text='Load mapping') extraSettings = self.layout.box() - if performer_obj.animation_data: + if performer_obj.animation_data and performer_obj.animation_data.action: extraSettings.prop(data=performer_obj.animation_data.action, property='name', text='Action Name') extraSettings.prop(enduser_arm, "frameStep") extraSettings.prop(enduser_arm, "advancedRetarget", text='Advanced Retarget') |