Explorar o código

Bindings: Fix Object::get_meta return type.

The method was shown as void in the docs.

(cherry picked from commit 2b7b67b7b11fcd3a198b0df0679d286e93a16154)
Andreas Haas %!s(int64=8) %!d(string=hai) anos
pai
achega
992b415702
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/object.cpp

+ 1 - 1
core/object.cpp

@@ -1538,7 +1538,7 @@ void Object::_bind_methods() {
 	ObjectTypeDB::bind_method(_MD("get_script:Script"), &Object::get_script);
 
 	ObjectTypeDB::bind_method(_MD("set_meta", "name", "value"), &Object::set_meta);
-	ObjectTypeDB::bind_method(_MD("get_meta", "name", "value"), &Object::get_meta);
+	ObjectTypeDB::bind_method(_MD("get_meta:Variant", "name", "value"), &Object::get_meta);
 	ObjectTypeDB::bind_method(_MD("has_meta", "name"), &Object::has_meta);
 	ObjectTypeDB::bind_method(_MD("get_meta_list"), &Object::_get_meta_list_bind);