Skip to content

Commit

Permalink
Fix camera viewport in game mode and fix bottom tool bar
Browse files Browse the repository at this point in the history
  • Loading branch information
rewin123 committed May 22, 2024
1 parent 2df89dc commit 0724178
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/editor_ui/src/menu_toolbars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Plugin for BottomMenuPlugin {
bottom_menu
.before(EditorLoadSet)
.in_set(EditorSet::Editor)
.run_if(in_state(EditorState::Editor).and_then(in_state(ShowEditorUi::Show))),
.run_if(in_state(ShowEditorUi::Show)),

Check warning on line 43 in crates/editor_ui/src/menu_toolbars.rs

View check run for this annotation

Codecov / codecov/patch

crates/editor_ui/src/menu_toolbars.rs#L43

Added line #L43 was not covered by tests
);
app.add_systems(
Update,
Expand Down
5 changes: 1 addition & 4 deletions crates/editor_ui/src/ui_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ impl Plugin for EditorUiCore {
.run_if(has_window_changed)
.in_set(UiSystemSet),
);
app.add_systems(
Update,
reset_camera_viewport.run_if(in_state(EditorState::Game)),
);

Check warning on line 136 in crates/editor_ui/src/ui_plugin.rs

View check run for this annotation

Codecov / codecov/patch

crates/editor_ui/src/ui_plugin.rs#L136

Added line #L136 was not covered by tests
app.add_systems(OnEnter(ShowEditorUi::Hide), reset_camera_viewport);
app.editor_tab_by_trait(EditorTabName::GameView, GameViewTab::default());

Expand Down

0 comments on commit 0724178

Please sign in to comment.