mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-10 14:42:13 -05:00
Add an initial undo state when importing a blank costume
This commit is contained in:
parent
136357463c
commit
379ecf85fc
1 changed files with 2 additions and 0 deletions
|
@ -63,6 +63,8 @@ class PaperCanvas extends React.Component {
|
|||
paper.project.view.zoom = oldZoom;
|
||||
paper.project.view.center = oldCenter;
|
||||
paper.project.view.update();
|
||||
} else {
|
||||
performSnapshot(this.props.undoSnapshot);
|
||||
}
|
||||
}
|
||||
componentWillUnmount () {
|
||||
|
|
Loading…
Reference in a new issue