Fixing small regression on initial rotation keyframes from our previous commit.

This commit is contained in:
Jonathan Thomas
2025-11-18 13:43:40 -06:00
parent a7dfc596ca
commit 355bea44d9

View File

@@ -149,8 +149,11 @@ void Clip::init_reader_rotation() {
return;
const auto rotate_meta = reader->info.metadata.find("rotate");
if (rotate_meta == reader->info.metadata.end())
if (rotate_meta == reader->info.metadata.end()) {
// Ensure rotation keyframes always start with a default 0° point.
rotation = Keyframe(0.0f);
return;
}
float rotate_angle = 0.0f;
try {