Skip to content

Commit

Permalink
Merge pull request #696 from OpenShot/rotation-bug
Browse files Browse the repository at this point in the history
Only get rotation from metadata if 0 keyframes
  • Loading branch information
JacksonRG committed Jul 7, 2021
2 parents 95651fb + 92b6251 commit ed1bee3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Clip.cpp
Expand Up @@ -121,12 +121,8 @@ void Clip::init_reader_settings() {

// Init reader's rotation (if any)
void Clip::init_reader_rotation() {
// Only init rotation from reader when needed
if (rotation.GetCount() > 1)
// Do nothing if more than 1 rotation Point
return;
else if (rotation.GetCount() == 1 && rotation.GetValue(1) != 0.0)
// Do nothing if 1 Point, and it's not the default value
// Dont init rotation if clip has keyframes
if (rotation.GetCount() > 0)
return;

// Init rotation
Expand Down

0 comments on commit ed1bee3

Please sign in to comment.