Simple fix - don't show meta-rig panel for non-armature data

This commit is contained in:
Matt Ebb 2009-12-20 23:34:05 +00:00
parent 85556a780c
commit 2a47383af5

@ -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'))