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>2012-09-05 05:42:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-05 05:42:52 +0400
commita4b71f4e01227d1d6508d8a5cb02301c19523469 (patch)
tree6b4ccc25835d3ae48a1ebf924be14db2ab5eefd1 /source/blender/nodes
parent65b214ed04c65dd4f5f7169a8c5c9e06405b5033 (diff)
fix for various redundant checks and possibly fix some crashes in rare situations.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/composite/node_composite_tree.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/nodes/composite/node_composite_tree.c b/source/blender/nodes/composite/node_composite_tree.c
index 55750ca1bab..07db1ce1a18 100644
--- a/source/blender/nodes/composite/node_composite_tree.c
+++ b/source/blender/nodes/composite/node_composite_tree.c
@@ -606,11 +606,9 @@ static void ntreeCompositExecTreeOld(bNodeTree *ntree, RenderData *rd, int do_pr
bNode *node;
ListBase threads;
ThreadData thdata;
- int totnode, curnode, rendering= 1, n;
- bNodeTreeExec *exec= ntree->execdata;
-
- if (ntree == NULL) return;
-
+ int totnode, curnode, rendering = TRUE, n;
+ bNodeTreeExec *exec = ntree->execdata;
+
if (do_preview)
ntreeInitPreview(ntree, 0, 0);