You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Remove unused member variables in EditorNode
This commit is contained in:
@@ -2764,7 +2764,6 @@ void EditorNode::_edit_current(bool p_skip_foreign, bool p_skip_inspector_update
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool inspector_only = editor_history.is_current_inspector_only();
|
bool inspector_only = editor_history.is_current_inspector_only();
|
||||||
current = current_obj;
|
|
||||||
|
|
||||||
if (!current_obj) {
|
if (!current_obj) {
|
||||||
SceneTreeDock::get_singleton()->set_selected(nullptr);
|
SceneTreeDock::get_singleton()->set_selected(nullptr);
|
||||||
@@ -8502,18 +8501,6 @@ EditorNode::EditorNode() {
|
|||||||
file_export_lib->add_option(TTR("Apply MeshInstance Transforms"), Vector<String>(), false);
|
file_export_lib->add_option(TTR("Apply MeshInstance Transforms"), Vector<String>(), false);
|
||||||
gui_base->add_child(file_export_lib);
|
gui_base->add_child(file_export_lib);
|
||||||
|
|
||||||
file_script = memnew(EditorFileDialog);
|
|
||||||
file_script->set_title(TTR("Open & Run a Script"));
|
|
||||||
file_script->set_access(EditorFileDialog::ACCESS_FILESYSTEM);
|
|
||||||
file_script->set_file_mode(EditorFileDialog::FILE_MODE_OPEN_FILE);
|
|
||||||
List<String> sexts;
|
|
||||||
ResourceLoader::get_recognized_extensions_for_type("Script", &sexts);
|
|
||||||
for (const String &E : sexts) {
|
|
||||||
file_script->add_filter("*." + E);
|
|
||||||
}
|
|
||||||
gui_base->add_child(file_script);
|
|
||||||
file_script->connect("file_selected", callable_mp(this, &EditorNode::_dialog_action));
|
|
||||||
|
|
||||||
file_pack_zip = memnew(EditorFileDialog);
|
file_pack_zip = memnew(EditorFileDialog);
|
||||||
file_pack_zip->connect("file_selected", callable_mp(this, &EditorNode::_dialog_action));
|
file_pack_zip->connect("file_selected", callable_mp(this, &EditorNode::_dialog_action));
|
||||||
file_pack_zip->set_file_mode(EditorFileDialog::FILE_MODE_SAVE_FILE);
|
file_pack_zip->set_file_mode(EditorFileDialog::FILE_MODE_SAVE_FILE);
|
||||||
@@ -8715,7 +8702,6 @@ EditorNode::EditorNode() {
|
|||||||
EditorTranslationParser::get_singleton()->add_parser(packed_scene_translation_parser_plugin, EditorTranslationParser::STANDARD);
|
EditorTranslationParser::get_singleton()->add_parser(packed_scene_translation_parser_plugin, EditorTranslationParser::STANDARD);
|
||||||
|
|
||||||
_edit_current();
|
_edit_current();
|
||||||
current = nullptr;
|
|
||||||
saving_resource = Ref<Resource>();
|
saving_resource = Ref<Resource>();
|
||||||
|
|
||||||
set_process(true);
|
set_process(true);
|
||||||
|
|||||||
@@ -346,8 +346,6 @@ private:
|
|||||||
PopupMenu *tool_menu = nullptr;
|
PopupMenu *tool_menu = nullptr;
|
||||||
PopupMenu *export_as_menu = nullptr;
|
PopupMenu *export_as_menu = nullptr;
|
||||||
Button *export_button = nullptr;
|
Button *export_button = nullptr;
|
||||||
Button *search_button = nullptr;
|
|
||||||
TextureProgressBar *audio_vu = nullptr;
|
|
||||||
|
|
||||||
Timer *screenshot_timer = nullptr;
|
Timer *screenshot_timer = nullptr;
|
||||||
|
|
||||||
@@ -408,10 +406,8 @@ private:
|
|||||||
EditorBuildProfileManager *build_profile_manager = nullptr;
|
EditorBuildProfileManager *build_profile_manager = nullptr;
|
||||||
EditorFileDialog *file_templates = nullptr;
|
EditorFileDialog *file_templates = nullptr;
|
||||||
EditorFileDialog *file_export_lib = nullptr;
|
EditorFileDialog *file_export_lib = nullptr;
|
||||||
EditorFileDialog *file_script = nullptr;
|
|
||||||
EditorFileDialog *file_android_build_source = nullptr;
|
EditorFileDialog *file_android_build_source = nullptr;
|
||||||
EditorFileDialog *file_pack_zip = nullptr;
|
EditorFileDialog *file_pack_zip = nullptr;
|
||||||
String current_path;
|
|
||||||
MenuButton *update_spinner = nullptr;
|
MenuButton *update_spinner = nullptr;
|
||||||
|
|
||||||
EditorMainScreen *editor_main_screen = nullptr;
|
EditorMainScreen *editor_main_screen = nullptr;
|
||||||
@@ -463,7 +459,6 @@ private:
|
|||||||
int current_menu_option = 0;
|
int current_menu_option = 0;
|
||||||
|
|
||||||
SubViewport *scene_root = nullptr; // Root of the scene being edited.
|
SubViewport *scene_root = nullptr; // Root of the scene being edited.
|
||||||
Object *current = nullptr;
|
|
||||||
|
|
||||||
Ref<Resource> saving_resource;
|
Ref<Resource> saving_resource;
|
||||||
HashSet<Ref<Resource>> saving_resources_in_path;
|
HashSet<Ref<Resource>> saving_resources_in_path;
|
||||||
@@ -479,8 +474,6 @@ private:
|
|||||||
SceneImportSettingsDialog *scene_import_settings = nullptr;
|
SceneImportSettingsDialog *scene_import_settings = nullptr;
|
||||||
AudioStreamImportSettingsDialog *audio_stream_import_settings = nullptr;
|
AudioStreamImportSettingsDialog *audio_stream_import_settings = nullptr;
|
||||||
|
|
||||||
String import_reload_fn;
|
|
||||||
|
|
||||||
HashSet<String> textfile_extensions;
|
HashSet<String> textfile_extensions;
|
||||||
HashSet<String> other_file_extensions;
|
HashSet<String> other_file_extensions;
|
||||||
HashSet<FileDialog *> file_dialogs;
|
HashSet<FileDialog *> file_dialogs;
|
||||||
|
|||||||
Reference in New Issue
Block a user