mirror of
https://github.com/storytold/filmcraft.git
synced 2026-12-02 20:19:02 -05:00
Effect Controls: the reversed-clip graph test requires every keyframe to be drawn, and a stale comment about to_media is updated (#2441)
This commit is contained in:
1 parent
5bd19d580a
commit
8deffcb7b8
1 file changed
+3
-2
@@ -1521,8 +1521,8 @@ pub(crate) fn graph_rows(
|
||||
if timeline >= it.end() {
|
||||
timeline = rate.snap((it.end() - Tick(1)).max(it.start));
|
||||
}
|
||||
// Sampled where the command stores the keyframe (a reversed clip runs backwards from its
|
||||
// out point, which `to_media` doesn't model).
|
||||
// Sampled where the command stores the keyframe (with a frame hold, which `to_media`
|
||||
// doesn't model, the effects can run on a different media time).
|
||||
let sampled = graph_components(¶m.value_at(it.effect_time_at(timeline)));
|
||||
let value = if sampled.len() <= 1 {
|
||||
Some(json!(v_of(pos.y)))
|
||||
@@ -2065,6 +2065,7 @@ mod graph_drag_tests {
|
||||
times = keys.key_times().to_vec();
|
||||
});
|
||||
out.textures_delta.clear();
|
||||
assert_eq!(times.len(), effect.params[d.param].keyframes.len(), "every graph keyframe is a snap target");
|
||||
for (k, time) in effect.params[d.param].keyframes.iter().zip(×) {
|
||||
assert_eq!(*time, timeline_time_of(&it, k.time));
|
||||
let id = format!("effectControls.scale.graph.keyframe.{}", k.time.0);
|
||||
|
||||
Reference in new issue
Block a user