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:
authorTon Roosendaal <ton@blender.org>2007-03-26 19:07:38 +0400
committerTon Roosendaal <ton@blender.org>2007-03-26 19:07:38 +0400
commit5c760e481114da07ef2ee364bc305bb7716abe8c (patch)
tree623d328cfd9383efb051d197e6264af185cf1e37 /source/blender/nodes/intern/SHD_nodes/SHD_texture.c
parentd1315a342d7db1653a7fc3cecb646ab785e08f6e (diff)
Changed node type definitions to use a dynamic list.
This will allow python or plugin defined nodes to work as well. (And fixes compile issues with MSVC in yesterdays commit for nodes) Code provided by Nathan L. Fixes in his code: - free_nodesystem() was called too late (after guarded alloc was closed) - free_nodesystem() was freeing nodes that were not malloced even - free_nodesystem was using free, not freeN :) - the typedefs needed to be malloced yes, to allow duplicate nodes like group but also for dynamic nodes.
Diffstat (limited to 'source/blender/nodes/intern/SHD_nodes/SHD_texture.c')
-rw-r--r--source/blender/nodes/intern/SHD_nodes/SHD_texture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/nodes/intern/SHD_nodes/SHD_texture.c b/source/blender/nodes/intern/SHD_nodes/SHD_texture.c
index 3da2b5cae71..8ba66d56b3c 100644
--- a/source/blender/nodes/intern/SHD_nodes/SHD_texture.c
+++ b/source/blender/nodes/intern/SHD_nodes/SHD_texture.c
@@ -111,6 +111,7 @@ static void node_shader_exec_texture(void *data, bNode *node, bNodeStack **in, b
}
bNodeType sh_node_texture= {
+ /* *next,*prev */ NULL, NULL,
/* type code */ SH_NODE_TEXTURE,
/* name */ "Texture",
/* width+range */ 120, 80, 240,