[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30468] trunk/blender/release/scripts/ui/ properties_material.py: patch for displaying a node icon in the material panel if the material has nodes (from venomgfx)
Campbell Barton
ideasman42 at gmail.com
Sun Jul 18 16:58:33 CEST 2010
Revision: 30468
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30468
Author: campbellbarton
Date: 2010-07-18 16:58:32 +0200 (Sun, 18 Jul 2010)
Log Message:
-----------
patch for displaying a node icon in the material panel if the material has nodes (from venomgfx)
Modified Paths:
--------------
trunk/blender/release/scripts/ui/properties_material.py
Modified: trunk/blender/release/scripts/ui/properties_material.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_material.py 2010-07-18 14:46:52 UTC (rev 30467)
+++ trunk/blender/release/scripts/ui/properties_material.py 2010-07-18 14:58:32 UTC (rev 30468)
@@ -118,6 +118,8 @@
if ob:
split.template_ID(ob, "active_material", new="material.new")
row = split.row()
+ if mat.use_nodes:
+ row.label(icon="NODETREE")
if slot:
row.prop(slot, "link", text="")
else:
More information about the Bf-blender-cvs
mailing list