Fix potential crash in material generator
This commit is contained in:
@@ -535,7 +535,7 @@ void MaterialGenerator::ProcessGroupFunction(Box* box, Node* node, Value& value)
|
||||
break;
|
||||
}
|
||||
Box* functionCallBox = functionCallNode->TryGetBox(inputIndex);
|
||||
if (functionCallBox->HasConnection())
|
||||
if (functionCallBox && functionCallBox->HasConnection())
|
||||
{
|
||||
// Use provided input value from the function call
|
||||
_graphStack.Pop();
|
||||
|
||||
Reference in New Issue
Block a user