mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-22 00:57:17 +01:00
Fix errors on new scene creation.
This commit is contained in:
parent
575a19eafb
commit
5a4bcf4be3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user