Got tired of the heavily compressed armature layer icons. Also added
authorDaniel Salazar <zanqdo@gmail.com>
Mon, 26 Apr 2010 08:55:14 +0000 (08:55 +0000)
committerDaniel Salazar <zanqdo@gmail.com>
Mon, 26 Apr 2010 08:55:14 +0000 (08:55 +0000)
a smart wide/narrow UI conversion

http://www.pasteall.org/pic/show.php?id=2940

release/scripts/ui/properties_data_armature.py

index 976c2ad78d5f57914dccef3c4958f5a4ea9bab8a..953ab5e5abdbdc13471f3fcc7e56682fd3ecdb66 100644 (file)
@@ -69,7 +69,10 @@ class DATA_PT_skeleton(DataButtonsPanel):
         arm = context.armature
         wide_ui = context.region.width > narrowui
 
-        layout.prop(arm, "pose_position", expand=True)
+        if wide_ui:
+            layout.prop(arm, "pose_position", expand=True)
+        else:
+            layout.prop(arm, "pose_position", text="")
 
         split = layout.split()
 
@@ -79,11 +82,16 @@ class DATA_PT_skeleton(DataButtonsPanel):
         col.label(text="Protected Layers:")
         col.prop(arm, "layer_protection", text="")
 
-        if wide_ui:
-            col = split.column()
         col.label(text="Deform:")
+
+        split = layout.split()
+
+        col = split.column()
         col.prop(arm, "deform_vertexgroups", text="Vertex Groups")
         col.prop(arm, "deform_envelope", text="Envelopes")
+
+        if wide_ui:
+            col = split.column()
         col.prop(arm, "deform_quaternion", text="Quaternion")
         col.prop(arm, "deform_bbone_rest", text="B-Bones Rest")