Fix regressions after rendering changes

This commit is contained in:
Wojtek Figat
2024-08-23 00:26:42 +02:00
parent a18565fd61
commit 591f0ee6a9
5 changed files with 10 additions and 6 deletions

View File

@@ -1049,6 +1049,8 @@ ShaderGenerator::Value ShaderGenerator::eatBox(Node* caller, Box* box)
ShaderGenerator::Value ShaderGenerator::tryGetValue(Box* box, int32 defaultValueBoxIndex, const Value& defaultValue)
{
if (!box)
return defaultValue;
const auto parentNode = box->GetParent<Node>();
if (box->HasConnection())
return eatBox(parentNode, box->FirstConnection());