Simple fix - don't show meta-rig panel for non-armature data
authorMatt Ebb <matt@mke3.net>
Sun, 20 Dec 2009 23:34:05 +0000 (23:34 +0000)
committerMatt Ebb <matt@mke3.net>
Sun, 20 Dec 2009 23:34:05 +0000 (23:34 +0000)
release/scripts/ui/properties_data_armature_rigify.py

index 88e5492d565d00a0be4adcd8edc66c8a446f99a0..9d04afe22b5509665a8a3a99437d4619e1f68d86 100644 (file)
@@ -67,6 +67,8 @@ class DATA_PT_template(bpy.types.Panel):
     templates = []
 
     def poll(self, context):
+        if not context.armature:
+            return False
         obj = context.object
         if obj:
             return (obj.mode in ('POSE', 'OBJECT'))