[Bf-blender-cvs] [5ba0ce85441] master: UI: Minor fixes to Delta Transform panel

William Reynish noreply at git.blender.org
Tue Sep 3 22:34:59 CEST 2019


Commit: 5ba0ce854410b51b6d0db3adb826259949f41f18
Author: William Reynish
Date:   Tue Sep 3 22:34:55 2019 +0200
Branches: master
https://developer.blender.org/rB5ba0ce854410b51b6d0db3adb826259949f41f18

UI: Minor fixes to Delta Transform panel

Removes some wrong gaps appearing

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

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 7424c090764..d2ba047e07e 100644
--- a/release/scripts/startup/bl_ui/properties_object.py
+++ b/release/scripts/startup/bl_ui/properties_object.py
@@ -109,20 +109,18 @@ class OBJECT_PT_delta_transform(ObjectButtonsPanel, Panel):
 
         ob = context.object
 
-        col = flow.column()
-        col.prop(ob, "delta_location")
+        col = layout.column()
+        col.prop(ob, "delta_location", text="Location")
 
-        col = flow.column()
         rotation_mode = ob.rotation_mode
         if rotation_mode == 'QUATERNION':
             col.prop(ob, "delta_rotation_quaternion", text="Rotation")
         elif rotation_mode == 'AXIS_ANGLE':
-            col.label(text="Not for Axis-Angle")
+            pass
         else:
-            col.prop(ob, "delta_rotation_euler", text="Delta Rotation")
+            col.prop(ob, "delta_rotation_euler", text="Rotation")
 
-        col = flow.column()
-        col.prop(ob, "delta_scale")
+        col.prop(ob, "delta_scale", text="Scale")
 
 
 class OBJECT_PT_relations(ObjectButtonsPanel, Panel):



More information about the Bf-blender-cvs mailing list