You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Keyframe::ScalePoints() skip first point without branch in loop
This commit is contained in:
@@ -888,11 +888,7 @@ double Keyframe::Bernstein(int64_t n, int64_t i, double t) {
|
||||
void Keyframe::ScalePoints(double scale)
|
||||
{
|
||||
// Loop through each point (skipping the 1st point)
|
||||
for (int64_t point_index = 0; point_index < Points.size(); point_index++) {
|
||||
// Skip the 1st point
|
||||
if (point_index == 0)
|
||||
continue;
|
||||
|
||||
for (int64_t point_index = 1; point_index < Points.size(); point_index++) {
|
||||
// Scale X value
|
||||
Points[point_index].co.X = round(Points[point_index].co.X * scale);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user