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
This commit is contained in:
mano-wii
2019-10-29 10:28:41 -03:00
parent 9389ad3736
commit 8a5f3d38af

View File

@@ -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,