From 5ad071633f5501c707c59b58910537b451cf14c7 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Fri, 5 Apr 2013 13:00:16 +0000 Subject: Stencil dimension control: * Shift-Rclick and holding right click, x or y will trigger constrained scaling of overlay. Pressing again will revert to uniform scaling. * Added operator, visible under the mapping drop menu, to fit stencil aspect ratio to brush image aspect ratio. * Made it possible to access stencil attributes from python as vec.x, vec.y. Thanks to kgeogeo for pointing out! --- release/scripts/startup/bl_ui/properties_paint_common.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'release/scripts/startup/bl_ui/properties_paint_common.py') diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py index ce7335d2975..b130a8a275d 100644 --- a/release/scripts/startup/bl_ui/properties_paint_common.py +++ b/release/scripts/startup/bl_ui/properties_paint_common.py @@ -82,6 +82,9 @@ def brush_texture_settings(layout, brush, sculpt): else: layout.row().prop(tex_slot, "tex_paint_map_mode", text="") layout.separator() + + if tex_slot.map_mode == 'STENCIL': + layout.operator("brush.stencil_fit_image_aspect") # angle and texture_angle_source col = layout.column() -- cgit v1.2.3