summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/Variant.cpp
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-04-06 02:32:24 +0200
committerKarroffel <therzog@mail.de>2017-04-06 02:32:24 +0200
commit5e3b01f0f136819b5628d4edec847eac2a4374a5 (patch)
tree8673ea914db1407a5f13cbee2ae6d1ae12b63b5d /include/godot_cpp/core/Variant.cpp
parent63c2b9d474784447d01cb4c90aabdfd3ab5e373c (diff)
downloadredot-cpp-5e3b01f0f136819b5628d4edec847eac2a4374a5.tar.gz
some NodePath fixes and better handling of Object type arguments
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
{