Commit a9920a36 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix keyframes test

parent fbd6d6c4
Pipeline #92819 passed with stage
in 8 minutes and 40 seconds
......@@ -247,7 +247,13 @@ TEST_CASE("Keyframe model", "[KeyframeModel]")
state1(6.1);
REQUIRE(model->addKeyframe(GenTime(12.6), KeyframeType::Discrete, 33));
REQUIRE_FALSE(model->moveKeyframe(GenTime(6.1), GenTime(12.6), -1, true));
// Moving a keyframe past another one another will move it 1 frame before or after.
REQUIRE(model->moveKeyframe(GenTime(6.1), GenTime(14), -1, true));
bool ok;
// There should be no keyframe after 12.6
model->getNextKeyframe(GenTime(12.6), &ok);
REQUIRE_FALSE(ok);
undoStack->undo();
undoStack->undo();
state1(6.1);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment