From ceb3225db77c5a86b8cb8cce555251c1dffdd033 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Mon, 25 Mar 2013 01:00:16 +0000 Subject: Alpha mask textures porting part 1: Support for projective texturing. Also add random mapping to brushes. --- release/scripts/startup/bl_ui/properties_paint_common.py | 15 +++++++++++++++ 1 file changed, 15 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 a3275bea4ee..17dcf267c3b 100644 --- a/release/scripts/startup/bl_ui/properties_paint_common.py +++ b/release/scripts/startup/bl_ui/properties_paint_common.py @@ -112,3 +112,18 @@ def brush_texture_settings(layout, brush, sculpt): col = layout.column(align=True) col.label(text="Sample Bias:") col.prop(brush, "texture_sample_bias", slider=True, text="") + + +def brush_mask_texture_settings(layout, brush): + mask_tex_slot = brush.mask_texture_slot + + if(brush.mask_texture): + layout.label(text="Mask Mapping:") + col = layout.column() + col.active = brush.brush_capabilities.has_texture_angle + col.prop(mask_tex_slot, "angle", text="") + + # scale and offset + split = layout.split() + split.prop(mask_tex_slot, "offset") + split.prop(mask_tex_slot, "scale") -- cgit v1.2.3