[Bf-blender-cvs] [cff08662231] temp-T96710-pbvh-pixels: Fix: UI alignment in knife tool settings popover

Pratik Borhade noreply at git.blender.org
Fri Apr 8 11:07:46 CEST 2022


Commit: cff08662231ce8c577f3af8ad92c9c781ad7679b
Author: Pratik Borhade
Date:   Wed Apr 6 17:01:07 2022 -0500
Branches: temp-T96710-pbvh-pixels
https://developer.blender.org/rBcff08662231ce8c577f3af8ad92c9c781ad7679b

Fix: UI alignment in knife tool settings popover

Remove the extra space given for decorators on right of the popover.

Differential Revision: https://developer.blender.org/D14518

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index 270d0e9b288..158e07659bc 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -1074,11 +1074,13 @@ class _defs_edit_mesh:
                 else:
                     extra = True
             if extra:
+                layout.use_property_decorate = False
                 layout.use_property_split = True
+
                 layout.prop(props, "visible_measurements")
                 layout.prop(props, "angle_snapping")
                 layout.label(text="Angle Snapping Increment")
-                layout.row().prop(props, "angle_snapping_increment", text="", expand=True)
+                layout.prop(props, "angle_snapping_increment", text="")
             if show_extra:
                 layout.popover("TOPBAR_PT_tool_settings_extra", text="...")
         return dict(



More information about the Bf-blender-cvs mailing list