Keyframe::UpdatePoint() removed redundant code

needs_update = true is set both by RemovePoint() and AddPoint(),
ReorderPoints() is called by AddPoint().
This commit is contained in:
Daniel Jour
2019-11-19 20:57:19 +01:00
parent 2b18ad099b
commit 6226e9d8e9

View File

@@ -587,17 +587,11 @@ void Keyframe::RemovePoint(int64_t index) {
}
void Keyframe::UpdatePoint(int64_t index, Point p) {
// mark as dirty
needs_update = true;
// Remove matching point
RemovePoint(index);
// Add new point
AddPoint(p);
// Reorder points
ReorderPoints();
}
void Keyframe::PrintPoints() {