Skip to content

Commit 4993624

Browse files
committed
Prevent too early audio bus save attempt
1 parent 944a3c6 commit 4993624

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

editor/audio/editor_audio_buses.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,11 @@ void EditorAudioBuses::_drop_at_index(int p_bus, int p_index) {
14411441
}
14421442

14431443
void EditorAudioBuses::_server_save() {
1444+
if (!EditorNode::get_singleton()->is_editor_ready()) {
1445+
// UIDs might be not initialized before first import, so don't save yet.
1446+
return;
1447+
}
1448+
14441449
Ref<AudioBusLayout> state = AudioServer::get_singleton()->generate_bus_layout();
14451450
if (edited_path.is_empty()) {
14461451
ResourceSaver::save(state, "res://default_bus_layout.tres");

0 commit comments

Comments
 (0)