You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Has_method is already provided by Object
c812c17633 introduces some extra gdscript bindings for signal discovery
and adds a binding for has_method() to Script objects. This method is
already provided by the ancestor Object.
This fixes the startup message:
ERROR: bind_methodfi: Class Script already has a method has_method
At: core/class_db.cpp:1178.
This commit is contained in:
@@ -55,7 +55,6 @@ void Script::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_source_code", "source"), &Script::set_source_code);
|
||||
ClassDB::bind_method(D_METHOD("reload", "keep_state"), &Script::reload, DEFVAL(false));
|
||||
|
||||
ClassDB::bind_method(D_METHOD("has_method", "method_name"), &Script::has_method);
|
||||
ClassDB::bind_method(D_METHOD("has_script_signal", "signal_name"), &Script::has_script_signal);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("is_tool"), &Script::is_tool);
|
||||
|
||||
Reference in New Issue
Block a user