__label__ = "Mesh"
def poll(self, context):
- return (context.object.type == 'MESH')
+ return (context.object and context.object.type == 'MESH')
def draw(self, context):
layout = self.layout
layout.itemR(mesh, "texco_mesh")
-bpy.types.register(DATA_PT_mesh)
\ No newline at end of file
+bpy.types.register(DATA_PT_mesh)