Merge pull request #19263 from vnen/fix-get-return

Fix return type of _get() virtual method
This commit is contained in:
Rémi Verschelde 2018-05-31 18:47:55 +02:00 committed by GitHub
commit 255d6470ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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