Skip to content

Commit 455142d

Browse files
oiseeclaude
andcommitted
renderer: fix animation_flat loading for long field names
Seeds from prng_budget_search use long names {seed,blk,and_n,warmup} while che_anim_flat uses short names {s,b,n,w}. Normalize both. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d433f48 commit 455142d

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

docs/renderer.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,17 @@ <h3>seeds <span style="color:#3a3a3a;font-size:9px">click = toggle one</span></h
256256

257257
let rawSeeds = [];
258258
if(animMode && data.type==='animation_flat'){
259-
// flat animation: seeds have {f,s,ox,oy,b,n,w}
259+
// flat animation: seeds may have short {f,s,ox,oy,b,n,w} or long {seed,ox,oy,blk,and_n,warmup}
260260
rawSeeds = (data.seeds||[]).map(r=>({
261-
seed:r.s, ox:r.ox, oy:r.oy, blk:r.b, and_n:r.n, warmup:r.w,
262-
frame:r.f, label:'F'+r.f+'-AND'+r.n, step:0
261+
seed: r.seed ?? r.s,
262+
ox: r.ox,
263+
oy: r.oy,
264+
blk: r.blk ?? r.b,
265+
and_n: r.and_n ?? r.n,
266+
warmup:r.warmup ?? r.w ?? 0,
267+
frame: r.f ?? 0,
268+
label: r.label || ('F'+(r.f??0)+'-AND'+(r.and_n??r.n)),
269+
step: r.step ?? 0
263270
}));
264271
} else if(animMode && data.frames){
265272
// nested animation: flatten all frames' seeds

0 commit comments

Comments
 (0)