Fix return type of _get() virtual method

This commit is contained in:
George Marques 2018-05-29 23:30:01 -03:00
parent 46bab3abc7
commit 34e2ccc593
No known key found for this signature in database
GPG Key ID: 046BD46A3201E43D
1 changed files with 1 additions and 0 deletions

View File

@ -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");