summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-05-07 20:56:50 +0200
committerGitHub <noreply@github.com>2020-05-07 20:56:50 +0200
commitbd75e2538b659034ca82b331d2684ca87ef52fe3 (patch)
tree616f8cb24924aa2fd46a94b34d5afdde27c67807
parent77e19d116efe0250863978c0df5bff55d2ef9af3 (diff)
parente32cdbe568da34933661ceb859dd0e3031f910e8 (diff)
Merge pull request #38536 from ThakeeNathees/trnasform-2-transform2d-convert-fix
Fix: can't convert Transform -> Transform2D
-rw-r--r--core/variant_call.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 39bfd04a0b..09094f3cc8 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -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 VECTOR3: return (Vector3(*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 QUAT: return (p_args[0]->operator Quat());
case AABB: