Fix: can't convert Transform -> Transform2D

Fix: #38528
(cherry picked from commit e32cdbe568)
This commit is contained in:
Thakee Nathees 2020-05-07 18:46:44 +05:30 committed by Rémi Verschelde
parent 55b4e0c44a
commit 7cfbde19c9

View file

@ -1211,6 +1211,8 @@ Variant Variant::construct(const Variant::Type p_type, const Variant **p_args, i
}
case RECT2: return (Rect2(*p_args[0]));
case VECTOR3: return (Vector3(*p_args[0]));
case TRANSFORM2D:
return (Transform2D(p_args[0]->operator Transform2D()));
case PLANE: return (Plane(*p_args[0]));
case QUAT: return (p_args[0]->operator Quat());
case AABB: