don't reset specific appState props on canvas clear (#2359)

Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
Lipis 2020-11-08 17:10:20 +02:00 committed by GitHub
parent f90cbeb089
commit dad9ad9bf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,11 @@ export const actionClearCanvas = register({
appState: {
...getDefaultAppState(),
appearance: appState.appearance,
elementLocked: appState.elementLocked,
exportBackground: appState.exportBackground,
exportEmbedScene: appState.exportEmbedScene,
gridSize: appState.gridSize,
shouldAddWatermark: appState.shouldAddWatermark,
username: appState.username,
},
commitToHistory: true,