Skip to content

Commit

Permalink
Issue #600: click on Sprites in animation view doesn't automatically …
Browse files Browse the repository at this point in the history
…update the view (#605)
  • Loading branch information
rmpowell77 authored Jan 21, 2025
1 parent 209accd commit 9ea4fe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions LATEST_RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Bugs addressed in this release:
* [#593](../../issues/593) Are the draw colors for selected and reference inverted on the drawing setup
* [#598](../../issues/598) ASAN crashes when drawing sprites
* [#599](../../issues/599) Selected marchers on field don't match animation
* [#600](../../issues/600) click on Sprites in animation view doesn't automatically update the view

Other changes:

Expand Down
3 changes: 3 additions & 0 deletions src/AnimationPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,13 @@ void AnimationPanel::CreateControls()
},
wxUI::VSizer{
mSpritesCheckbox = wxUI::CheckBox{ "Sprites" }
.withValue(mConfig.Get_UseSprites())
.bind([this](wxCommandEvent& event) {
mConfig.Set_UseSprites(event.IsChecked());
Refresh();
}),
mZoomCheckbox = wxUI::CheckBox{ "Zoom" }
.withValue(mCanvas->GetZoomOnMarchers())
.bind([this](wxCommandEvent& event) {
mCanvas->SetZoomOnMarchers(event.IsChecked());
}),
Expand Down

0 comments on commit 9ea4fe4

Please sign in to comment.