mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
bug fix: added z index to scene state (#734)
layers z-index now are persisted in scene state
This commit is contained in:
1 parent
81f5797e2f
commit
69ed3ec48b
1 file changed
+2
@@ -1035,6 +1035,8 @@ export const useSceneStore = create<SceneState>((set, get) => ({
|
||||
scaleY: node.scaleY || 1,
|
||||
offsetX: node.offsetX || 0,
|
||||
offsetY: node.offsetY || 0,
|
||||
zIndex: node.zIndex || 0,
|
||||
locked: node.locked || false,
|
||||
};
|
||||
|
||||
// Convert imageFile to base64 if it exists
|
||||
|
||||
Reference in new issue
Block a user