mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 21:01:50 +08:00
Merge pull request #98911 from KoBeWi/😵💫
Fix wrong checked menu item in 3D editor
This commit is contained in:
commit
36e6207bb4
@ -8480,7 +8480,7 @@ void Node3DEditor::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(Node3DEditorViewport::VIEW_AUDIO_LISTENER), i == 0);
|
||||
viewports[i]->view_menu->get_popup()->set_item_checked(viewports[i]->view_menu->get_popup()->get_item_index(Node3DEditorViewport::VIEW_AUDIO_LISTENER), i == 0);
|
||||
viewports[i]->viewport->set_as_audio_listener_3d(i == 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user