fix for python error when pinning a non mesh object in mesh editmode.

This commit is contained in:
Campbell Barton 2011-07-03 07:21:33 +00:00
parent 22bb09d018
commit abb21a4da0

@ -290,9 +290,8 @@ class DATA_PT_texface(MeshButtonsPanel, bpy.types.Panel):
@classmethod
def poll(cls, context):
ob = context.active_object
return (context.mode == 'EDIT_MESH') and ob and ob.type == 'MESH'
obj = context.object
return (context.mode == 'EDIT_MESH') and obj and obj.type == 'MESH'
def draw(self, context):
layout = self.layout