Two fixes:

- Shaded view was black, needed to tell it to use 'combined' pass :)
- Crash when deleting in compositor all nodes with an output.
This commit is contained in:
2006-12-05 18:02:43 +00:00
parent 4f8079d49c
commit 2c816da097
3 changed files with 8 additions and 2 deletions

View File

@@ -1819,6 +1819,9 @@ void ntreeBeginExecTree(bNodeTree *ntree)
if(ntree->init & NTREE_EXEC_INIT)
return;
/* allocate the stack pointer array */
ntree->stack= MEM_callocN(BLENDER_MAX_THREADS*sizeof(void *), "stack array");
/* goes recursive over all groups */
ntree->stacksize= ntree_begin_exec_tree(ntree);
@@ -1827,8 +1830,7 @@ void ntreeBeginExecTree(bNodeTree *ntree)
bNodeStack *ns;
int a;
/* allocate stack array, and the base stack */
ntree->stack= MEM_callocN(BLENDER_MAX_THREADS*sizeof(void *), "stack array");
/* allocate the base stack */
ns=ntree->stack[0]= MEM_callocN(ntree->stacksize*sizeof(bNodeStack), "node stack");
/* tag inputs, the get_stack() gives own socket stackdata if not in use */