From 24c94e4af0399f7a1f39738942a0b24adde39db6 Mon Sep 17 00:00:00 2001 From: Zhehang Ding Date: Mon, 7 Feb 2022 00:31:48 -0800 Subject: [PATCH] Add missing Vector3::operator Vector3i --- src/variant/vector3.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/variant/vector3.cpp b/src/variant/vector3.cpp index 5c12c75..6cfb92a 100644 --- a/src/variant/vector3.cpp +++ b/src/variant/vector3.cpp @@ -31,6 +31,7 @@ #include #include #include +#include namespace godot { @@ -121,4 +122,8 @@ Vector3::operator String() const { return (String::num(x, 5) + ", " + String::num(y, 5) + ", " + String::num(z, 5)); } +Vector3::operator Vector3i() const { + return Vector3i(x, y, z); +} + } // namespace godot