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
path: root/source
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2011-09-08 10:14:03 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2011-09-08 10:14:03 +0400
commit939a733659e78ff6839a5e9f8368e1b5071d82c1 (patch)
treec46ad5ff712320f716c7b0cfb4d79d70db088447 /source
parent7500f4cd488b90f30cd72c1a25e6cc5a1fe8c55b (diff)
Shader node tree exec data cannot use the exec->nodetree before it is initialized.
Diffstat (limited to 'source')
-rw-r--r--source/blender/nodes/shader/node_shader_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/shader/node_shader_tree.c b/source/blender/nodes/shader/node_shader_tree.c
index 642e4be10d7..c50005bef67 100644
--- a/source/blender/nodes/shader/node_shader_tree.c
+++ b/source/blender/nodes/shader/node_shader_tree.c
@@ -211,7 +211,7 @@ void ntreeShaderExecTree(bNodeTree *ntree, ShadeInput *shi, ShadeResult *shr)
memset(shr, 0, sizeof(ShadeResult));
if (!exec)
- exec = ntree->execdata = ntreeShaderBeginExecTree(exec->nodetree, 1);
+ exec = ntree->execdata = ntreeShaderBeginExecTree(ntree, 1);
nts= ntreeGetThreadStack(exec, shi->thread);
ntreeExecThreadNodes(exec, nts, &scd, shi->thread);