bug fix: added z index to scene state (#734)

layers z-index now are persisted in scene state
This commit is contained in:
BFlat authored and GitHub committed 2025-07-21 14:49:23 +07:00
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