[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20036] trunk/blender/source/blender/src/ buttons_shading.c: Bugfix #18671

Ton Roosendaal ton at blender.org
Sun May 3 13:25:09 CEST 2009


Revision: 20036
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20036
Author:   ton
Date:     2009-05-03 13:25:09 +0200 (Sun, 03 May 2009)

Log Message:
-----------
Bugfix #18671

Texture Nodes: the option to use nodes was also visible for textures
on world, lamp, brush. Since it only works for Materials now, I've made
the button disappear then.

Modified Paths:
--------------
    trunk/blender/source/blender/src/buttons_shading.c

Modified: trunk/blender/source/blender/src/buttons_shading.c
===================================================================
--- trunk/blender/source/blender/src/buttons_shading.c	2009-05-03 09:21:58 UTC (rev 20035)
+++ trunk/blender/source/blender/src/buttons_shading.c	2009-05-03 11:25:09 UTC (rev 20036)
@@ -1705,7 +1705,8 @@
 			uiDefButS(block, MENU, B_TEXTYPE, textypes,	160, 125, 140, 25, &tex->type, 0,0,0,0, "Select texture type");
 		}
 		
-		uiDefButC(block, TOG, B_TEX_USENODES, "Nodes", 160, 100, 140, 25, &tex->use_nodes, 0.0f, 0.0f, 0, 0, "");
+		if(ma)
+			uiDefButC(block, TOG, B_TEX_USENODES, "Nodes", 160, 100, 140, 25, &tex->use_nodes, 0.0f, 0.0f, 0, 0, "");
 
 	}
 	else {





More information about the Bf-blender-cvs mailing list