[Bf-blender-cvs] [82dc5f91e86] blender2.8: UI: Style locks in Object Transform panel

Pablo Vazquez noreply at git.blender.org
Wed Jun 20 17:01:42 CEST 2018


Commit: 82dc5f91e86351e1a26769ec86d9054437eb77d6
Author: Pablo Vazquez
Date:   Wed Jun 20 17:01:33 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB82dc5f91e86351e1a26769ec86d9054437eb77d6

UI: Style locks in Object Transform panel

===================================================================

M	release/scripts/startup/bl_ui/properties_object.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py
index 153d6af9b24..ea05a639125 100644
--- a/release/scripts/startup/bl_ui/properties_object.py
+++ b/release/scripts/startup/bl_ui/properties_object.py
@@ -57,15 +57,17 @@ class OBJECT_PT_transform(ObjectButtonsPanel, Panel):
         col = flow.column()
         row = col.row(align=True)
         row.prop(ob, "location")
-        row.prop(ob, "lock_location", text="")
+        row.use_property_decorate = False
+        row.prop(ob, "lock_location", text="", emboss=False)
 
         if ob.rotation_mode == 'QUATERNION':
             col = flow.column()
             row = col.row(align=True)
             row.prop(ob, "rotation_quaternion", text="Rotation")
             sub = row.column(align=True)
-            sub.prop(ob, "lock_rotation_w", text="")
-            sub.prop(ob, "lock_rotation", text="")
+            sub.use_property_decorate = False
+            sub.prop(ob, "lock_rotation_w", text="", emboss=False)
+            sub.prop(ob, "lock_rotation", text="", emboss=False)
         elif ob.rotation_mode == 'AXIS_ANGLE':
             # row.column().label(text="Rotation")
             #row.column().prop(pchan, "rotation_angle", text="Angle")
@@ -75,20 +77,25 @@ class OBJECT_PT_transform(ObjectButtonsPanel, Panel):
             row.prop(ob, "rotation_axis_angle", text="Rotation")
 
             sub = row.column(align=True)
-            sub.prop(ob, "lock_rotation_w", text="")
-            sub.prop(ob, "lock_rotation", text="")
+            sub.use_property_decorate = False
+            sub.prop(ob, "lock_rotation_w", text="", emboss=False)
+            sub.prop(ob, "lock_rotation", text="", emboss=False)
         else:
             col = flow.column()
             row = col.row(align=True)
             row.prop(ob, "rotation_euler", text="Rotation")
-            row.prop(ob, "lock_rotation", text="")
+            row.use_property_decorate = False
+            row.prop(ob, "lock_rotation", text="", emboss=False)
 
         col = flow.column()
         row = col.row(align=True)
         row.prop(ob, "scale")
-        row.prop(ob, "lock_scale", text="")
+        row.use_property_decorate = False
+        row.prop(ob, "lock_scale", text="", emboss=False)
 
-        layout.prop(ob, "rotation_mode")
+        row = layout.row(align=True)
+        row.prop(ob, "rotation_mode")
+        row.label(text="", icon="BLANK1")
 
 
 class OBJECT_PT_delta_transform(ObjectButtonsPanel, Panel):



More information about the Bf-blender-cvs mailing list