From 2b18ad099b3336a0f231fe5f86662eaea95251d1 Mon Sep 17 00:00:00 2001 From: Daniel Jour Date: Tue, 19 Nov 2019 20:50:56 +0100 Subject: [PATCH] Keyframe::ScalePoints() skip first point without branch in loop --- src/KeyFrame.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/KeyFrame.cpp b/src/KeyFrame.cpp index 60114e6a..c7aa9091 100644 --- a/src/KeyFrame.cpp +++ b/src/KeyFrame.cpp @@ -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);