[Selection Sets] Fix usage with proxies

This commit is contained in:
Inês Almeida 2016-03-08 21:59:43 +00:00
parent 17aa4c7daf
commit ca2164d5d7
1 changed files with 1 additions and 4 deletions

View File

@ -82,8 +82,7 @@ class POSE_PT_selection_sets(Panel):
@classmethod
def poll(cls, context):
return (context.armature
and context.object
return (context.object
and context.object.type == 'ARMATURE'
and context.object.pose
)
@ -94,8 +93,6 @@ class POSE_PT_selection_sets(Panel):
ob = context.object
arm = context.object
layout.enabled = (ob.proxy is None)
row = layout.row()
# UI list