Merge pull request #38536 from ThakeeNathees/trnasform-2-transform2d-convert-fix

Fix: can't convert Transform -> Transform2D
This commit is contained in:
Rémi Verschelde 2020-05-07 20:56:50 +02:00 committed by GitHub
commit bd75e2538b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1353,6 +1353,8 @@ Variant Variant::construct(const Variant::Type p_type, const Variant **p_args, i
case RECT2I: return (Rect2i(*p_args[0])); case RECT2I: return (Rect2i(*p_args[0]));
case VECTOR3: return (Vector3(*p_args[0])); case VECTOR3: return (Vector3(*p_args[0]));
case VECTOR3I: return (Vector3i(*p_args[0])); case VECTOR3I: return (Vector3i(*p_args[0]));
case TRANSFORM2D:
return (Transform2D(p_args[0]->operator Transform2D()));
case PLANE: return (Plane(*p_args[0])); case PLANE: return (Plane(*p_args[0]));
case QUAT: return (p_args[0]->operator Quat()); case QUAT: return (p_args[0]->operator Quat());
case AABB: case AABB: