[Bf-blender-cvs] [3d8f8085fb9] master: UI: show connected icon for proportional editing in the image space

Campbell Barton noreply at git.blender.org
Thu Jul 16 14:09:16 CEST 2020


Commit: 3d8f8085fb90f239c6b444cf9435cadd6a1b4ed6
Author: Campbell Barton
Date:   Thu Jul 16 18:53:41 2020 +1000
Branches: master
https://developer.blender.org/rB3d8f8085fb90f239c6b444cf9435cadd6a1b4ed6

UI: show connected icon for proportional editing in the image space

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index 651866cf316..75c1bb5e3f9 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -699,7 +699,12 @@ class IMAGE_HT_header(Header):
 
             # Proportional Editing
             row = layout.row(align=True)
-            row.prop(tool_settings, "use_proportional_edit", icon_only=True)
+            row.prop(
+                tool_settings,
+                "use_proportional_edit",
+                icon_only=True,
+                icon='PROP_CON' if tool_settings.use_proportional_connected else 'PROP_ON',
+            )
             sub = row.row(align=True)
             sub.active = tool_settings.use_proportional_edit
             sub.prop_with_popover(



More information about the Bf-blender-cvs mailing list