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-10-09 19:21:49 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-10-09 19:21:49 +0400
commit4109d5565f11587cc28e9a8d9a4db28e7d313ec2 (patch)
treed4e9e22ae3fabbd72b0bb44498715e49a00e0d6e /release
parentdf771e59fa9a664ad6ddef8fb3d7053c23f9adcb (diff)
better naming for overlay panel, also only expose texture overlay for
modes that support it.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py24
1 files changed, 13 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index f8abb6f4e69..0f443b4c705 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -739,7 +739,7 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel):
col.prop(brush, "vertex_tool", text="Blend")
-class IMAGE_PT_tools_brush_overlay(View3DPaintPanel, Panel):
+class VIEW3D_PT_tools_brush_overlay(Panel, View3DPaintPanel):
bl_label = "Overlay"
bl_options = {'DEFAULT_CLOSED'}
@@ -766,17 +766,19 @@ class IMAGE_PT_tools_brush_overlay(View3DPaintPanel, Panel):
sub.prop(brush, "use_cursor_overlay_override", toggle=True, text="", icon='BRUSH_DATA')
col.active = brush.brush_capabilities.has_overlay
- col.label(text="Texture:")
- row = col.row(align=True)
- if tex_slot.map_mode != 'STENCIL':
- if brush.use_primary_overlay:
- row.prop(brush, "use_primary_overlay", toggle=True, text="", icon='RESTRICT_VIEW_OFF')
- else:
- row.prop(brush, "use_primary_overlay", toggle=True, text="", icon='RESTRICT_VIEW_ON')
+
+ if context.image_paint_object or context.sculpt_object or context.vertex_paint_object:
+ col.label(text="Texture:")
+ row = col.row(align=True)
+ if tex_slot.map_mode != 'STENCIL':
+ if brush.use_primary_overlay:
+ row.prop(brush, "use_primary_overlay", toggle=True, text="", icon='RESTRICT_VIEW_OFF')
+ else:
+ row.prop(brush, "use_primary_overlay", toggle=True, text="", icon='RESTRICT_VIEW_ON')
- sub = row.row(align=True)
- sub.prop(brush, "texture_overlay_alpha", text="Alpha")
- sub.prop(brush, "use_primary_overlay_override", toggle=True, text="", icon='BRUSH_DATA')
+ sub = row.row(align=True)
+ sub.prop(brush, "texture_overlay_alpha", text="Alpha")
+ sub.prop(brush, "use_primary_overlay_override", toggle=True, text="", icon='BRUSH_DATA')
if context.image_paint_object:
col.label(text="Mask Texture:")