Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2013-04-05 17:00:16 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-04-05 17:00:16 +0400
commit5ad071633f5501c707c59b58910537b451cf14c7 (patch)
treee25354da59b0810cbc3480319b45a96f773383a3 /release/scripts/startup/bl_ui/properties_paint_common.py
parent4cfffd863b69bad2962fbfef8dbc565b0c739c65 (diff)
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!
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_paint_common.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_paint_common.py3
1 files changed, 3 insertions, 0 deletions
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()