diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-10-29 16:28:41 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-10-29 16:28:41 +0300 |
commit | 8a5f3d38af9649dbf0ccb7c9d1276be39c3de343 (patch) | |
tree | 969dc4b30318899aeef06a58041fc5b2a614218a /release/scripts/startup/bl_ui | |
parent | 9389ad3736334d470574b3c9fc6c6e648041e996 (diff) |
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
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 26 |
1 files changed, 25 insertions, 1 deletions
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, |