Fix for line style shader/texture types showing up in the node editor when Freestyle is disabled at compile time.

Problem report by Thomas Dinges on IRC, thanks!
This commit is contained in:
Tamito Kajiyama 2014-08-18 16:54:26 +09:00
parent 8986883de1
commit 05cb63ecf7
Notes: blender-bot 2023-02-14 11:08:33 +01:00
Referenced by commit d2cc65cd1c, Fix for missing updates of build scripts in the commit rB05cb63ecf750.
1 changed files with 4 additions and 0 deletions

View File

@ -3411,14 +3411,18 @@ static void rna_def_space_node(BlenderRNA *brna)
{SNODE_TEX_OBJECT, "OBJECT", ICON_OBJECT_DATA, "Object", "Edit texture nodes from Object"},
{SNODE_TEX_WORLD, "WORLD", ICON_WORLD_DATA, "World", "Edit texture nodes from World"},
{SNODE_TEX_BRUSH, "BRUSH", ICON_BRUSH_DATA, "Brush", "Edit texture nodes from Brush"},
#ifdef WITH_FREESTYLE
{SNODE_TEX_LINESTYLE, "LINESTYLE", ICON_LINE_DATA, "Line Style", "Edit texture nodes from Line Style"},
#endif
{0, NULL, 0, NULL, NULL}
};
static EnumPropertyItem shader_type_items[] = {
{SNODE_SHADER_OBJECT, "OBJECT", ICON_OBJECT_DATA, "Object", "Edit shader nodes from Object"},
{SNODE_SHADER_WORLD, "WORLD", ICON_WORLD_DATA, "World", "Edit shader nodes from World"},
#ifdef WITH_FREESTYLE
{SNODE_SHADER_LINESTYLE, "LINESTYLE", ICON_LINE_DATA, "Line Style", "Edit shader nodes from Line Style"},
#endif
{0, NULL, 0, NULL, NULL}
};