Fix errors on new scene creation.

This commit is contained in:
Relintai 2022-10-09 00:21:43 +02:00
parent 575a19eafb
commit 5a4bcf4be3

View File

@ -7032,7 +7032,7 @@ void SpatialEditor::clear() {
}
for (uint32_t i = 0; i < VIEWPORTS_COUNT; i++) {
viewports[i]->view_menu->get_popup()->set_item_checked(view_menu->get_popup()->get_item_index(SpatialEditorViewport::VIEW_AUDIO_LISTENER), i == 0);
viewports[i]->view_menu->get_popup()->set_item_checked(viewports[i]->view_menu->get_popup()->get_item_index(SpatialEditorViewport::VIEW_AUDIO_LISTENER), i == 0);
viewports[i]->viewport->set_as_audio_listener(i == 0);
}