Fix material function usage regression

This commit is contained in:
Wojtek Figat
2021-12-06 19:43:17 +01:00
parent 23303802ec
commit 5d12554548

View File

@@ -329,7 +329,7 @@ void MaterialGenerator::ProcessGroupMaterial(Box* box, Node* node, Value& value)
// Evaluate the function output // Evaluate the function output
_graphStack.Push(graph); _graphStack.Push(graph);
value = tryGetValue(functionOutputBox, Value::Zero); value = functionOutputBox && functionOutputBox->HasConnection() ? eatBox(node, functionOutputBox->FirstConnection()) : Value::Zero;
_graphStack.Pop(); _graphStack.Pop();
break; break;
} }