From 89ba1f8943b52abc123aee723200aac7276acc71 Mon Sep 17 00:00:00 2001 From: sumi Date: Wed, 24 Dec 2025 12:09:46 -0600 Subject: [PATCH] automated snapshot --- storage.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage.go b/storage.go index 656530f..711f81a 100644 --- a/storage.go +++ b/storage.go @@ -129,7 +129,8 @@ func (s *Storage) Save(capture *SketchCapture) (string, error) { layerPng := filepath.Join(path, "data", filename) rl.ExportImage(*layerTools.capture, layerPng) opacity := float32(layerTools.config.a) / 255.0 - oraLayers[i] = + ii := len(capture.layerTools) - 1 - i + oraLayers[ii] = ora.ORALayer{ Name: layerTools.name, Filename: filename, @@ -137,9 +138,8 @@ func (s *Storage) Save(capture *SketchCapture) (string, error) { Opacity: opacity, Blend: "svg:src-over", } - } - + oraPath := filepath.Join(path, fmt.Sprintf("%s-layers.ora", flakeId)) ora.WriteORA(oraPath, int(capture.width), int(capture.height), oraLayers,