forked from bartvdbraak/blender
Simple fix - don't show meta-rig panel for non-armature data
This commit is contained in:
parent
85556a780c
commit
2a47383af5
@ -67,6 +67,8 @@ class DATA_PT_template(bpy.types.Panel):
|
|||||||
templates = []
|
templates = []
|
||||||
|
|
||||||
def poll(self, context):
|
def poll(self, context):
|
||||||
|
if not context.armature:
|
||||||
|
return False
|
||||||
obj = context.object
|
obj = context.object
|
||||||
if obj:
|
if obj:
|
||||||
return (obj.mode in ('POSE', 'OBJECT'))
|
return (obj.mode in ('POSE', 'OBJECT'))
|
||||||
|
Loading…
Reference in New Issue
Block a user