[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60629] trunk/blender/release/scripts/ startup/bl_ui/space_view3d_toolbar.py: better naming for overlay panel, also only expose texture overlay for
Antony Riakiotakis
kalast at gmail.com
Wed Oct 9 17:21:49 CEST 2013
Revision: 60629
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60629
Author: psy-fi
Date: 2013-10-09 15:21:49 +0000 (Wed, 09 Oct 2013)
Log Message:
-----------
better naming for overlay panel, also only expose texture overlay for
modes that support it.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py
Modified: trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py 2013-10-09 15:07:48 UTC (rev 60628)
+++ trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py 2013-10-09 15:21:49 UTC (rev 60629)
@@ -739,7 +739,7 @@
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 @@
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:")
More information about the Bf-blender-cvs
mailing list