[8a5f3d38af9] blender-v2.81-release: Fix T71124: UV Editor – Proportional Editing Falloff misses some Options

mano-wii noreply at git.blender.org
Tue Oct 29 14:28:54 CET 2019


Commit: 8a5f3d38af9649dbf0ccb7c9d1276be39c3de343
Author: mano-wii
Date:   Tue Oct 29 10:28:41 2019 -0300
Branches: blender-v2.81-release
https://developer.blender.org/rB8a5f3d38af9649dbf0ccb7c9d1276be39c3de343

Fix T71124: UV Editor – Proportional Editing Falloff misses some Options

This mimics the same solution for proportional edit in the 3D View.

Maniphest Tasks: T71124

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

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

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 aaa73b2c864..cf5283d65cb 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -667,7 +667,13 @@ class IMAGE_HT_header(Header):
             row.prop(tool_settings, "use_proportional_edit", icon_only=True)
             sub = row.row(align=True)
             sub.active = tool_settings.use_proportional_edit
-            sub.prop(tool_settings, "proportional_edit_falloff", icon_only=True)
+            sub.prop_with_popover(
+                tool_settings,
+                "proportional_edit_falloff",
+                text="",
+                icon_only=True,
+                panel="IMAGE_PT_proportional_edit",
+            )
 
     def draw(self, context):
         layout = self.layout
@@ -889,6 +895,23 @@ class IMAGE_PT_snapping(Panel):
         row.prop(tool_settings, "use_snap_scale", text="Scale", toggle=True)
 
 
+class IMAGE_PT_proportional_edit(Panel):
+    bl_space_type = 'IMAGE_EDITOR'
+    bl_region_type = 'HEADER'
+    bl_label = "Proportional Editing"
+    bl_ui_units_x = 8
+
+    def draw(self, context):
+        layout = self.layout
+        tool_settings = context.tool_settings
+        col = layout.column()
+
+        col.prop(tool_settings, "use_proportional_connected")
+        col.separator()
+
+        col.prop(tool_settings, "proportional_edit_falloff", expand=True)
+
+
 class IMAGE_PT_image_properties(Panel):
     bl_space_type = 'IMAGE_EDITOR'
     bl_region_type = 'UI'
@@ -1705,6 +1728,7 @@ classes = (
     IMAGE_PT_active_mask_spline,
     IMAGE_PT_active_mask_point,
     IMAGE_PT_snapping,
+    IMAGE_PT_proportional_edit,
     IMAGE_PT_image_properties,
     IMAGE_UL_render_slots,
     IMAGE_PT_render_slots,



More information about the Bf-blender-cvs mailing list