Bug fix #34436
Two example files that crashed texture nodes. - On delete texture nodes, it should free the exec cache (because this cache stores the node pointer. - On redo, nodes can exist can exist without typeinfo set. Exec (free) code was not checking for that. Don't ask me why this happens... tex nodes are weird.
This commit is contained in:
@@ -248,8 +248,9 @@ void ntree_exec_end(bNodeTreeExec *exec)
|
||||
MEM_freeN(exec->stack);
|
||||
|
||||
for (n=0, nodeexec= exec->nodeexec; n < exec->totnodes; ++n, ++nodeexec) {
|
||||
if (nodeexec->node->typeinfo->freeexecfunc)
|
||||
nodeexec->node->typeinfo->freeexecfunc(nodeexec->node, nodeexec->data);
|
||||
if (nodeexec->node->typeinfo)
|
||||
if (nodeexec->node->typeinfo->freeexecfunc)
|
||||
nodeexec->node->typeinfo->freeexecfunc(nodeexec->node, nodeexec->data);
|
||||
}
|
||||
|
||||
if (exec->nodeexec)
|
||||
|
||||
Reference in New Issue
Block a user