Fix default value in Dot and Distance graph nodes

This commit is contained in:
Wojtek Figat
2022-06-21 20:03:36 +02:00
parent 134c8b99aa
commit 5d34575a91
2 changed files with 6 additions and 10 deletions

View File

@@ -276,8 +276,8 @@ void VisjectExecutor::ProcessGroupMath(Box* box, Node* node, Value& value)
case 19:
case 20:
{
Value v1 = tryGetValue(node->GetBox(0), Value::Zero);
Value v2 = tryGetValue(node->GetBox(1), Value::Zero).Cast(v1.Type);
Value v1 = tryGetValue(node->GetBox(0), 0, Value::Zero);
Value v2 = tryGetValue(node->GetBox(1), 1, Value::Zero).Cast(v1.Type);
switch (node->TypeID)
{
case 18: