summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-09-20 01:33:45 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-09-20 14:24:39 +0200
commit2560070c0ab098b4b30de1cc337f5afcae12e806 (patch)
tree97184cd94e5ec51d874e0ee3728bd9089ec22447 /core
parenta92c58ed3e50f21d4207a02ae4d4cd82f75cd5a4 (diff)
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.
Diffstat (limited to 'core')
-rw-r--r--core/core_bind.cpp2
1 files changed, 0 insertions, 2 deletions
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");