Skip to content

Commit 6226e9d

Browse files
committed
Keyframe::UpdatePoint() removed redundant code
needs_update = true is set both by RemovePoint() and AddPoint(), ReorderPoints() is called by AddPoint().
1 parent 2b18ad0 commit 6226e9d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/KeyFrame.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -587,17 +587,11 @@ void Keyframe::RemovePoint(int64_t index) {
587587
}
588588

589589
void Keyframe::UpdatePoint(int64_t index, Point p) {
590-
// mark as dirty
591-
needs_update = true;
592-
593590
// Remove matching point
594591
RemovePoint(index);
595592

596593
// Add new point
597594
AddPoint(p);
598-
599-
// Reorder points
600-
ReorderPoints();
601595
}
602596

603597
void Keyframe::PrintPoints() {

0 commit comments

Comments
 (0)