Skip to content

Commit 2b18ad0

Browse files
committed
Keyframe::ScalePoints() skip first point without branch in loop
1 parent 5ddc6a3 commit 2b18ad0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/KeyFrame.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -888,11 +888,7 @@ double Keyframe::Bernstein(int64_t n, int64_t i, double t) {
888888
void Keyframe::ScalePoints(double scale)
889889
{
890890
// Loop through each point (skipping the 1st point)
891-
for (int64_t point_index = 0; point_index < Points.size(); point_index++) {
892-
// Skip the 1st point
893-
if (point_index == 0)
894-
continue;
895-
891+
for (int64_t point_index = 1; point_index < Points.size(); point_index++) {
896892
// Scale X value
897893
Points[point_index].co.X = round(Points[point_index].co.X * scale);
898894

0 commit comments

Comments
 (0)