Fix crash in geo_process_node_and_siblings()

This commit is contained in:
MysterD 2022-02-14 18:15:54 -08:00
parent 8abae8d26b
commit 91b26646e0
1 changed files with 5 additions and 0 deletions

View File

@ -1345,6 +1345,11 @@ void geo_process_node_and_siblings(struct GraphNode *firstNode) {
iterateChildren = (parent->type != GRAPH_NODE_TYPE_SWITCH_CASE);
}
// sanity check
if (firstNode == NULL) {
return;
}
do {
if (curGraphNode->flags & GRAPH_RENDER_ACTIVE) {
if (curGraphNode->flags & GRAPH_RENDER_CHILDREN_FIRST) {