From 34e2ccc593f6b2161c8c2e84cd0f808e5de9ddc2 Mon Sep 17 00:00:00 2001 From: George Marques Date: Tue, 29 May 2018 23:30:01 -0300 Subject: [PATCH] Fix return type of _get() virtual method --- core/object.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/object.cpp b/core/object.cpp index 239700a4abe..1d2aeb7ba50 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -1677,6 +1677,7 @@ void Object::_bind_methods() { #ifdef TOOLS_ENABLED MethodInfo miget("_get", PropertyInfo(Variant::STRING, "property")); miget.return_val.name = "Variant"; + miget.return_val.usage |= PROPERTY_USAGE_NIL_IS_VARIANT; BIND_VMETHOD(miget); MethodInfo plget("_get_property_list");