UI:
[blender-staging.git] / release / ui / buttons_data_mesh.py
index c3742b38cc17ec9834d12a3b687a38b959cf4abb..c103a0f70557cbb2e028ac222620b25aa4da6a2d 100644 (file)
@@ -12,12 +12,16 @@ class DataButtonsPanel(bpy.types.Panel):
 class DATA_PT_mesh(DataButtonsPanel):
        __idname__ = "DATA_PT_mesh"
        __label__ = "Mesh"
+       
+       def poll(self, context):
+               return (context.object and context.object.type == 'MESH')
 
        def draw(self, context):
+               layout = self.layout
+               
                ob = context.object
                mesh = context.mesh
                space = context.space_data
-               layout = self.layout
 
                split = layout.split(percentage=0.65)