3D View properties region / Mesh Displays panel:
authorThomas Dinges <blender@dingto.org>
Fri, 1 Mar 2013 18:45:41 +0000 (18:45 +0000)
committerThomas Dinges <blender@dingto.org>
Fri, 1 Mar 2013 18:45:41 +0000 (18:45 +0000)
* Made overlays use 2 columns, rather than 1 as suggested by Sebastian K├Ânig in IRC.
* Small tweak to the Normal size button, grey out if unused.

release/scripts/startup/bl_ui/space_view3d.py

index 0231c7b..37f7cf6 100644 (file)
@@ -2519,22 +2519,33 @@ class VIEW3D_PT_view3d_meshdisplay(Panel):
 
         mesh = context.active_object.data
 
-        col = layout.column()
+        split = layout.split()
+        
+        col = split.column()
         col.label(text="Overlays:")
-        col.prop(mesh, "show_edges", text="Edges")
         col.prop(mesh, "show_faces", text="Faces")
+        col.prop(mesh, "show_edges", text="Edges")
         col.prop(mesh, "show_edge_crease", text="Creases")
-        col.prop(mesh, "show_edge_bevel_weight", text="Bevel Weights")
+        
+        col = split.column()
+        col.label()
         col.prop(mesh, "show_edge_seams", text="Seams")
         col.prop(mesh, "show_edge_sharp", text="Sharp")
+        col.prop(mesh, "show_edge_bevel_weight", text="Weights")
+        
+        col = layout.column()
 
         col.separator()
         col.label(text="Normals:")
         row = col.row()
+        
         sub = row.row(align=True)
         sub.prop(mesh, "show_normal_vertex", text="", icon='VERTEXSEL')
         sub.prop(mesh, "show_normal_face", text="", icon='FACESEL')
-        row.prop(context.scene.tool_settings, "normal_size", text="Size")
+        
+        sub = row.row(align=True)
+        sub.active = mesh.show_normal_vertex or mesh.show_normal_face
+        sub.prop(context.scene.tool_settings, "normal_size", text="Size")
 
         col.separator()
         col.label(text="Numerics:")