Skip to content

Commit ed1bee3

Browse files
authored
Merge pull request #696 from OpenShot/rotation-bug
Only get rotation from metadata if 0 keyframes
2 parents 95651fb + 92b6251 commit ed1bee3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Clip.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,8 @@ void Clip::init_reader_settings() {
121121

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

132128
// Init rotation

0 commit comments

Comments
 (0)