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:
parent
fbdecfb5d2
commit
4cf279bb5a
1 changed files with 5 additions and 2 deletions
|
|
@ -170,8 +170,11 @@
|
||||||
|
|
||||||
(defn- gap-switch [ch path frame set-gap!]
|
(defn- gap-switch [ch path frame set-gap!]
|
||||||
(let [ks (sort (keys (:keys ch)))
|
(let [ks (sort (keys (:keys ch)))
|
||||||
left (when-not (node/hold-only? path (channel/value-at ch (or frame 0) nil))
|
;; Only a channel with a gap between keys is read; a measured one has
|
||||||
(gap-at ks frame))
|
;; 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)))]
|
tween? (and left (= :linear (channel/segment-interp ch left)))]
|
||||||
(if left
|
(if left
|
||||||
[:button.gap {:class (when tween? "on")
|
[:button.gap {:class (when tween? "on")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue