Keyframe::ScalePoints() skip first point without branch in loop

This commit is contained in:
Daniel Jour
2019-11-19 20:50:56 +01:00
parent 5ddc6a3b3a
commit 2b18ad099b

View File

@@ -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);