This commit is contained in:
Wojtek Figat
2022-06-15 20:39:55 +02:00
parent 0d3ecd6dd2
commit bc8cc75ad8
2 changed files with 12 additions and 8 deletions

View File

@@ -65,9 +65,10 @@ void VisjectExecutor::ProcessGroupConstants(Box* box, Node* node, Value& value)
case 6:
case 7:
{
const Float4 cv = (Float4)node->Values[0];
const Variant& v = node->Values[0];
const Float4 cv = (Float4)v;
if (box->ID == 0)
value = cv;
value = v;
else if (box->ID == 1)
value = cv.X;
else if (box->ID == 2)
@@ -130,9 +131,10 @@ void VisjectExecutor::ProcessGroupConstants(Box* box, Node* node, Value& value)
case 17:
case 18:
{
const Vector4 cv = (Vector4)node->Values[0];
const Variant& v = node->Values[0];
const Vector4 cv = (Vector4)v;
if (box->ID == 0)
value = cv;
value = v;
else if (box->ID == 1)
value = cv.X;
else if (box->ID == 2)