You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixed a bug with Keyframes that only have a single coordinate, to correctly return that Y value for any requested X position.
This commit is contained in:
@@ -231,7 +231,12 @@ void Keyframe::Process() {
|
||||
|
||||
// fill in all values between 0 and 1st point's co.X
|
||||
Point p1 = Points[0];
|
||||
for (int x = 0; x < p1.co.X; x++)
|
||||
if (Points.size() > 1)
|
||||
// Fill in previous X values (before 1st point)
|
||||
for (int x = 0; x < p1.co.X; x++)
|
||||
Values.push_back(Coordinate(Values.size(), p1.co.Y));
|
||||
else
|
||||
// Add a single value (since we only have 1 point)
|
||||
Values.push_back(Coordinate(Values.size(), p1.co.Y));
|
||||
|
||||
// Loop through each pair of points (1 less than the max points). Each
|
||||
|
||||
Reference in New Issue
Block a user