From 7cfbde19c9101338d425891c29557dd31b71042e Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Thu, 7 May 2020 18:46:44 +0530 Subject: [PATCH] Fix: can't convert Transform -> Transform2D Fix: #38528 (cherry picked from commit e32cdbe568da34933661ceb859dd0e3031f910e8) --- core/variant_call.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/variant_call.cpp b/core/variant_call.cpp index 9b5a638a326..1ac55e85e3f 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -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: