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
  • Loading branch information
rmpowell77 committed Jan 20, 2025
1 parent d8a9665 commit 8671008
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 @@ -4,6 +4,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
* [#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 8671008

Please sign in to comment.