fix frme rte things
This commit is contained in:
parent
9af21c5d10
commit
a10d7b2d9f
44 changed files with 889 additions and 716 deletions
|
|
@ -181,7 +181,7 @@
|
|||
[:node :main :insert [:insert]]]
|
||||
(mapv :select (:cels lane))))))
|
||||
|
||||
(deftest a-nested-lane-is-drawn-in-the-open-symbols-frame-rate
|
||||
(deftest a-nested-lane-at-a-speed-is-drawn-in-the-open-symbols-frames
|
||||
(let [child {:id :cel :kind :instance :z "a" :span [0 2]
|
||||
:time {:at 4 :rate 1}
|
||||
:source {:symbol :drawing}
|
||||
|
|
@ -189,20 +189,18 @@
|
|||
placed {:id :take :kind :instance :z "a" :span [0 12]
|
||||
:time {:at 0 :rate 1}
|
||||
:source {:symbol :lane}
|
||||
:playback {:in 0 :speed 1 :end :stop}}
|
||||
:playback {:in 0 :speed 2 :end :stop}}
|
||||
doc (-> (clip/blank)
|
||||
(assoc :fps 12)
|
||||
(assoc-in [:symbols :main :fps] 12)
|
||||
(assoc-in [:symbols :main :frames] 12)
|
||||
(assoc-in [:symbols :main :nodes] {:take placed})
|
||||
(assoc-in [:symbols :lane]
|
||||
{:id :lane :fps 24 :frames 24 :display :lane
|
||||
{:id :lane :frames 24 :display :lane
|
||||
:nodes {:cel child}})
|
||||
(assoc-in [:symbols :drawing]
|
||||
{:id :drawing :fps 24 :frames 1 :nodes {}}))
|
||||
{:id :drawing :frames 1 :nodes {}}))
|
||||
lane (first (filter :lane? (timeline/rows doc :main #{})))]
|
||||
(is (= [[2 3]] (mapv :span (:cels lane)))
|
||||
"native frames 4–6 occupy ruler frames 2–3 at twice the frame rate")))
|
||||
"a lane placed at twice the speed draws its frames 4–6 on ruler frames 2–3")))
|
||||
|
||||
(deftest an-ordinary-symbol-keeps-a-row-per-node
|
||||
(let [doc (update-in (fixture/document) [:symbols :main] dissoc :display)
|
||||
|
|
@ -225,13 +223,13 @@
|
|||
(deftest creation-walks-to-the-nearest-valid-parent-at-the-playhead
|
||||
(let [doc (-> (fixture/document)
|
||||
(assoc-in [:symbols :shot]
|
||||
{:id :shot :frames 12 :fps 24
|
||||
{:id :shot :frames 12
|
||||
:nodes {:girl {:id :girl :kind :instance :z "a"
|
||||
:span [0 12] :time {:mode :map :at 0 :rate 1}
|
||||
:source {:symbol :main}
|
||||
:playback {:in 0 :speed 1 :end :stop}}}})
|
||||
(assoc-in [:symbols :outer]
|
||||
{:id :outer :frames 30 :fps 24
|
||||
{:id :outer :frames 30
|
||||
:nodes {:take {:id :take :kind :instance :z "a"
|
||||
:span [0 12] :time {:mode :map :at 10 :rate 1}
|
||||
:source {:symbol :shot}
|
||||
|
|
@ -468,7 +466,7 @@
|
|||
;; was missing rather than landing in one that is there.
|
||||
(update-in [:symbols :main :nodes] dissoc :insert)
|
||||
(assoc-in [:symbols :shot]
|
||||
{:id :shot :fps 24 :frames 12
|
||||
{:id :shot :frames 12
|
||||
:nodes {:girl {:id :girl :kind :instance :z "b" :span [0 12]
|
||||
:time {:mode :map :at 0 :rate 1}
|
||||
:source {:symbol :main}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue