From 8a5f3d38af9649dbf0ccb7c9d1276be39c3de343 Mon Sep 17 00:00:00 2001 From: mano-wii Date: Tue, 29 Oct 2019 10:28:41 -0300 Subject: =?UTF-8?q?Fix=20T71124:=20UV=20Editor=20=E2=80=93=20Proportional?= =?UTF-8?q?=20Editing=20Falloff=20misses=20some=20Options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This mimics the same solution for proportional edit in the 3D View. Maniphest Tasks: T71124 Differential Revision: https://developer.blender.org/D6142 --- release/scripts/startup/bl_ui/space_image.py | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3