From 2560070c0ab098b4b30de1cc337f5afcae12e806 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 20 Sep 2021 01:33:45 +0200 Subject: Remove `Engine.editor_hint` in favor of `Engine.is_editor_hint()` The `Engine.set_editor_hint()` setter method is no longer exposed to scripting, which makes the property effectively read-only from an user perspective. --- core/core_bind.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'core') diff --git a/core/core_bind.cpp b/core/core_bind.cpp index e029b85450..242a2f3638 100644 --- a/core/core_bind.cpp +++ b/core/core_bind.cpp @@ -2297,13 +2297,11 @@ void Engine::_bind_methods() { ClassDB::bind_method(D_METHOD("unregister_singleton", "name"), &Engine::unregister_singleton); ClassDB::bind_method(D_METHOD("get_singleton_list"), &Engine::get_singleton_list); - ClassDB::bind_method(D_METHOD("set_editor_hint", "enabled"), &Engine::set_editor_hint); ClassDB::bind_method(D_METHOD("is_editor_hint"), &Engine::is_editor_hint); ClassDB::bind_method(D_METHOD("set_print_error_messages", "enabled"), &Engine::set_print_error_messages); ClassDB::bind_method(D_METHOD("is_printing_error_messages"), &Engine::is_printing_error_messages); - ADD_PROPERTY(PropertyInfo(Variant::BOOL, "editor_hint"), "set_editor_hint", "is_editor_hint"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "print_error_messages"), "set_print_error_messages", "is_printing_error_messages"); ADD_PROPERTY(PropertyInfo(Variant::INT, "physics_ticks_per_second"), "set_physics_ticks_per_second", "get_physics_ticks_per_second"); ADD_PROPERTY(PropertyInfo(Variant::INT, "target_fps"), "set_target_fps", "get_target_fps"); -- cgit v1.2.3