Skip to content

Commit

Permalink
Fix wrong checked menu item in 3D editor
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Nov 6, 2024
1 parent 87318a2 commit 4cbf156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/node_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4cbf156

Please sign in to comment.