diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-12-30 20:06:59 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-12-30 20:07:12 +0300 |
commit | 9e950ea6610b2f876d816c4787cb06082d91bd82 (patch) | |
tree | 5248042b151831b4450aa90ac7b6a9cca810a404 /release/scripts/startup/bl_ui | |
parent | 016bbc879329390041909d524e3b41834b6853d3 (diff) |
Fix issue in separate rake control commit:
Mask slot still depended on regular slot to check some capabilities.
Some angle capabilities now only depend on the texture slot, not the
brush, so separate them and use the slot where appropriate.
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_paint_common.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py index 49634982beb..ba1947b0c66 100644 --- a/release/scripts/startup/bl_ui/properties_paint_common.py +++ b/release/scripts/startup/bl_ui/properties_paint_common.py @@ -243,14 +243,14 @@ def brush_texture_settings(layout, brush, sculpt): layout.operator("brush.stencil_reset_transform") # angle and texture_angle_source - if brush.brush_capabilities.has_texture_angle: + if tex_slot.has_texture_angle: col = layout.column() col.label(text="Angle:") - if brush.brush_capabilities.has_texture_angle_source: - col.prop(tex_slot, "angle", text="") + col.prop(tex_slot, "angle", text="") + if tex_slot.has_texture_angle_source: col.prop(tex_slot, "use_rake", text="Rake") - if brush.brush_capabilities.has_random_texture_angle: + if brush.brush_capabilities.has_random_texture_angle and tex_slot.has_random_texture_angle: if sculpt: if brush.sculpt_capabilities.has_random_texture_angle: col.prop(tex_slot, "use_random", text="Random") @@ -290,14 +290,14 @@ def brush_mask_texture_settings(layout, brush): col = layout.column() col.prop(brush, "use_pressure_masking", text="") # angle and texture_angle_source - if brush.brush_capabilities.has_texture_angle: + if mask_tex_slot.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, "angle", text="") + if mask_tex_slot.has_texture_angle_source: col.prop(mask_tex_slot, "use_rake", text="Rake") - if brush.brush_capabilities.has_random_texture_angle: + if brush.brush_capabilities.has_random_texture_angle and mask_tex_slot.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="") |