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:
authorCampbell Barton <ideasman42@gmail.com>2010-07-18 18:58:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-18 18:58:32 +0400
commitbeb4bec453b1b6fcfc576c0595db1c0783394c25 (patch)
treed938d71076ac50a3838f26788da25c5fd10742bf /release/scripts/ui/properties_material.py
parent5f1246f62af853f07d8c5c3179491e76815d555c (diff)
patch for displaying a node icon in the material panel if the material has nodes (from venomgfx)
Diffstat (limited to 'release/scripts/ui/properties_material.py')
-rw-r--r--release/scripts/ui/properties_material.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/ui/properties_material.py b/release/scripts/ui/properties_material.py
index 1526bd004a0..b15b77e8c2f 100644
--- a/release/scripts/ui/properties_material.py
+++ b/release/scripts/ui/properties_material.py
@@ -118,6 +118,8 @@ class MATERIAL_PT_context_material(MaterialButtonsPanel):
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: