diff options
| author | Tomasz Chabora <kobewi4e@gmail.com> | 2019-08-28 19:42:27 +0200 |
|---|---|---|
| committer | kobewi <kobewi4e@gmail.com> | 2021-01-16 23:33:04 +0100 |
| commit | 412125f1910c78d0b6a969ac952cddbad6ca0df4 (patch) | |
| tree | 7ef6bb2b2c6189e90f8285d6152aa8d9082521ff /editor/editor_node.h | |
| parent | 3099f6fae4da58f6c55d7bf4a060e21b5968a0bf (diff) | |
| download | redot-engine-412125f1910c78d0b6a969ac952cddbad6ca0df4.tar.gz | |
Detect external modification of scenes
Diffstat (limited to 'editor/editor_node.h')
| -rw-r--r-- | editor/editor_node.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/editor/editor_node.h b/editor/editor_node.h index 1da162dc9c..d2334806d5 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -422,6 +422,9 @@ private: Label *version_label; Button *bottom_panel_raise; + Tree *disk_changed_list; + ConfirmationDialog *disk_changed; + void _bottom_panel_raise_toggled(bool); EditorInterface *editor_interface; @@ -641,6 +644,9 @@ private: static void _resource_loaded(RES p_resource, const String &p_path); void _resources_changed(const Vector<String> &p_resources); + void _scan_external_changes(); + void _reload_modified_scenes(); + void _resave_scenes(String p_str); void _feature_profile_changed(); bool _is_class_editor_disabled_by_feature_profile(const StringName &p_class); @@ -741,7 +747,7 @@ public: void fix_dependencies(const String &p_for_file); void clear_scene() { _cleanup_scene(); } int new_scene(); - Error load_scene(const String &p_scene, bool p_ignore_broken_deps = false, bool p_set_inherited = false, bool p_clear_errors = true, bool p_force_open_imported = false); + Error load_scene(const String &p_scene, bool p_ignore_broken_deps = false, bool p_set_inherited = false, bool p_clear_errors = true, bool p_force_open_imported = false, bool p_silent_change_tab = false); Error load_resource(const String &p_resource, bool p_ignore_broken_deps = false); bool is_scene_open(const String &p_path); |
