From c7c10e5e283879961356050ba8a965d2239456b8 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Fri, 26 Dec 2014 23:51:27 +0100 Subject: Brush Texture Angle Goodies: This commit includes a few things: * It moves the Rake and Random flags from the brush to the MTex. * The first change allows mask textures to have independent rake support. * Random rotation now has an angle value that controls the width of the effect from the rake or default angle * Rake and Random are now supported together. --- .../startup/bl_ui/properties_paint_common.py | 34 +++++++++++++--------- 1 file changed, 21 insertions(+), 13 deletions(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py index f1042856e4c..49634982beb 100644 --- a/release/scripts/startup/bl_ui/properties_paint_common.py +++ b/release/scripts/startup/bl_ui/properties_paint_common.py @@ -246,21 +246,20 @@ def brush_texture_settings(layout, brush, sculpt): if brush.brush_capabilities.has_texture_angle: col = layout.column() col.label(text="Angle:") - row = col.row(align=True) if brush.brush_capabilities.has_texture_angle_source: + col.prop(tex_slot, "angle", text="") + col.prop(tex_slot, "use_rake", text="Rake") + if brush.brush_capabilities.has_random_texture_angle: if sculpt: if brush.sculpt_capabilities.has_random_texture_angle: - row.prop(brush, "texture_angle_source_random", text="") - else: - row.prop(brush, "texture_angle_source_no_random", text="") - + col.prop(tex_slot, "use_random", text="Random") + if tex_slot.use_random: + col.prop(tex_slot, "random_angle", text="") else: - row.prop(brush, "texture_angle_source_random", text="") - else: - row.prop(brush, "texture_angle_source_no_random", text="") - - row.prop(tex_slot, "angle", text="") + col.prop(tex_slot, "use_random", text="Random") + if tex_slot.use_random: + col.prop(tex_slot, "random_angle", text="") # scale and offset split = layout.split() @@ -290,9 +289,18 @@ def brush_mask_texture_settings(layout, brush): col = layout.column() col.prop(brush, "use_pressure_masking", text="") - col.label(text="Angle:") - col.active = brush.brush_capabilities.has_texture_angle - col.prop(mask_tex_slot, "angle", text="") + # angle and texture_angle_source + if brush.brush_capabilities.has_texture_angle: + col = layout.column() + col.label(text="Angle:") + if brush.brush_capabilities.has_texture_angle_source: + col.prop(mask_tex_slot, "angle", text="") + col.prop(mask_tex_slot, "use_rake", text="Rake") + + if brush.brush_capabilities.has_random_texture_angle: + col.prop(mask_tex_slot, "use_random", text="Random") + if mask_tex_slot.use_random: + col.prop(mask_tex_slot, "random_angle", text="") # scale and offset split = layout.split() -- cgit v1.2.3