You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user