diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-10-29 16:29:59 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-10-29 16:29:59 +0300 |
commit | e2240d9fc166a898f78974cb29f1e5d78916a57b (patch) | |
tree | bc8c81385f2513ee0643e964408e175108dd7992 /release | |
parent | 9e48cb10491293d33c5579fdb2c820c8f29ae737 (diff) | |
parent | 8a5f3d38af9649dbf0ccb7c9d1276be39c3de343 (diff) |
Merge branch 'blender-v2.81-release'
Diffstat (limited to 'release')
-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, |