Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix OOS when undoing actions with synced choices
The problm was that the old code tried to use `undo_stack().can_undo()` to check whether the current action can be undone. But `undo_stack().can_undo()` uses the undo stack which is only updated at the end of each action, so it cannot be used to check whether the action that is currently executed can be undone. This code removes some assertion that were wrong due to the justmentioned.
- Loading branch information
Showing
4 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters