summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/Variant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/godot_cpp/core/Variant.cpp')
-rw-r--r--include/godot_cpp/core/Variant.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/godot_cpp/core/Variant.cpp b/include/godot_cpp/core/Variant.cpp
index 394d97d..6442bc2 100644
--- a/include/godot_cpp/core/Variant.cpp
+++ b/include/godot_cpp/core/Variant.cpp
@@ -385,6 +385,10 @@ Variant::operator PoolColorArray() const
godot_pool_color_array s = godot_variant_as_pool_color_array(&_godot_variant);
return *(PoolColorArray *) &s;
}
+Variant::operator Object*() const {
+ godot_object *o = godot_variant_as_object(&_godot_variant);
+ return (Object *) o;
+}
Variant::Type Variant::get_type() const
{