A measured channel has no gap to switch, so the inspector doesn't read it

The hold/tween switch read every channel's value without the dense store, so
opening a roto symbol threw on its measured mouth. Find the gap first; a
measured channel has no keys and is never read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Olive Vaughn 2026-10-11 12:51:58 -04:00
parent fbdecfb5d2
commit 4cf279bb5a

View file

@ -170,8 +170,11 @@
(defn- gap-switch [ch path frame set-gap!]
(let [ks (sort (keys (:keys ch)))
left (when-not (node/hold-only? path (channel/value-at ch (or frame 0) nil))
(gap-at ks frame))
;; Only a channel with a gap between keys is read; a measured one has
;; no keys, and its value lives in a store the inspector doesn't hold.
left (when-let [l (gap-at ks frame)]
(when-not (node/hold-only? path (channel/value-at ch frame nil))
l))
tween? (and left (= :linear (channel/segment-interp ch left)))]
(if left
[:button.gap {:class (when tween? "on")