4 class DataButtonsPanel(bpy.types.Panel):
5 __space_type__ = "BUTTONS_WINDOW"
6 __region_type__ = "WINDOW"
9 def poll(self, context):
10 return (context.mesh != None)
12 class DATA_PT_surface(DataButtonsPanel):
13 __idname__ = "DATA_PT_surface"
16 def draw(self, context):
20 split = layout.split()
23 col.itemR(mesh, "autosmooth")
25 colsub.active = mesh.autosmooth
26 colsub.itemR(mesh, "autosmooth_angle", text="Angle")
28 sub.itemR(mesh, "vertex_normal_flip")
29 sub.itemR(mesh, "double_sided")
31 layout.itemR(mesh, "texco_mesh")
33 bpy.types.register(DATA_PT_surface)