You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Merge pull request #89248 from KoBeWi/store_no_store
Don't store values when loading them
This commit is contained in:
@@ -357,7 +357,10 @@ void TileSetEditor::_set_source_sort(int p_sort) {
|
||||
}
|
||||
}
|
||||
_update_sources_list(old_selected);
|
||||
EditorSettings::get_singleton()->set_project_metadata("editor_metadata", "tile_source_sort", p_sort);
|
||||
|
||||
if (!first_edit) {
|
||||
EditorSettings::get_singleton()->set_project_metadata("editor_metadata", "tile_source_sort", p_sort);
|
||||
}
|
||||
}
|
||||
|
||||
void TileSetEditor::_notification(int p_what) {
|
||||
@@ -738,8 +741,8 @@ void TileSetEditor::edit(Ref<TileSet> p_tile_set) {
|
||||
|
||||
tile_set->connect_changed(callable_mp(this, &TileSetEditor::_tile_set_changed));
|
||||
if (first_edit) {
|
||||
first_edit = false;
|
||||
_set_source_sort(EditorSettings::get_singleton()->get_project_metadata("editor_metadata", "tile_source_sort", 0));
|
||||
first_edit = false;
|
||||
} else {
|
||||
_update_sources_list();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user