1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Initialize bools in the headers in editor

This commit is contained in:
Aaron Franke
2022-02-15 08:56:58 -06:00
parent d7019de7e3
commit 918b09cabc
70 changed files with 175 additions and 389 deletions

View File

@@ -5841,16 +5841,7 @@ EditorNode::EditorNode() {
}
singleton = this;
exiting = false;
dimmed = false;
last_checked_version = 0;
changing_scene = false;
_initializing_addons = false;
docks_visible = true;
restoring_scenes = false;
cmdline_export_mode = false;
scene_distraction = false;
script_distraction = false;
TranslationServer::get_singleton()->set_enabled(false);
// load settings
@@ -7112,9 +7103,6 @@ EditorNode::EditorNode() {
current = nullptr;
saving_resource = Ref<Resource>();
reference_resource_mem = true;
save_external_resources_mem = true;
set_process(true);
open_imported = memnew(ConfirmationDialog);
@@ -7125,7 +7113,6 @@ EditorNode::EditorNode() {
gui_base->add_child(open_imported);
saved_version = 1;
unsaved_cache = true;
_last_instantiated_scene = nullptr;
quick_open = memnew(EditorQuickOpen);
@@ -7139,10 +7126,7 @@ EditorNode::EditorNode() {
_update_recent_scenes();
editor_data.restore_editor_global_states();
convert_old = false;
opening_prev = false;
set_process_unhandled_input(true);
_playing_edited = false;
load_errors = memnew(RichTextLabel);
load_error_dialog = memnew(AcceptDialog);
@@ -7183,8 +7167,6 @@ EditorNode::EditorNode() {
FileAccess::set_file_close_fail_notify_callback(_file_access_close_error_notify);
waiting_for_first_scan = true;
print_handler.printfunc = _print_handler;
print_handler.userdata = this;
add_print_handler(&print_handler);