diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-05 05:42:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-05 05:42:52 +0400 |
commit | a4b71f4e01227d1d6508d8a5cb02301c19523469 (patch) | |
tree | 6b4ccc25835d3ae48a1ebf924be14db2ab5eefd1 /source/blender/nodes | |
parent | 65b214ed04c65dd4f5f7169a8c5c9e06405b5033 (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.c | 8 |
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); |