diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-12-16 23:44:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-16 23:44:25 +0100 |
commit | 09623ffc4e415531df257e31c8e3b0ad3ab9ec06 (patch) | |
tree | ba933ea374f78e55bb24de62532eb240807012e4 | |
parent | 74bf67c3a639f91263da1501fc0aaee8f1e299c5 (diff) | |
parent | ca90dd302b7ebff4ceb3ebc7070dc4c17d626ec0 (diff) |
Merge pull request #22697 from LittleWhite-tb/file-reloading-fix
Change global timestamp behavior earlier
-rw-r--r-- | editor/editor_node.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 1063447376..3bd7678746 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3135,6 +3135,9 @@ bool EditorNode::is_scene_in_use(const String &p_path) { void EditorNode::register_editor_types() { + ResourceLoader::set_timestamp_on_load(true); + ResourceSaver::set_timestamp_on_save(true); + ClassDB::register_class<EditorPlugin>(); ClassDB::register_class<EditorImportPlugin>(); ClassDB::register_class<EditorScript>(); @@ -4826,9 +4829,6 @@ EditorNode::EditorNode() { ResourceLoader::set_error_notify_func(this, _load_error_notify); ResourceLoader::set_dependency_error_notify_func(this, _dependency_error_report); - ResourceLoader::set_timestamp_on_load(true); - ResourceSaver::set_timestamp_on_save(true); - { //register importers at the beginning, so dialogs are created with the right extensions Ref<ResourceImporterTexture> import_texture; import_texture.instance(); |