Sfoglia il codice sorgente

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

Co-authored-by: David Luzar <luzar.david@gmail.com>
Lipis 4 anni fa
parent
commit
dad9ad9bf4
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/actions/actionCanvas.tsx

+ 5 - 0
src/actions/actionCanvas.tsx

@@ -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,