You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Keyframe: Replace AddPoint overload w/default arg
This commit is contained in:
@@ -29,6 +29,11 @@
|
||||
*/
|
||||
|
||||
#include "KeyFrame.h"
|
||||
#include "Exceptions.h"
|
||||
|
||||
#include <cassert> // For assert()
|
||||
#include <iostream> // For std::cout
|
||||
#include <iomanip> // For std::setprecision
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include <utility>
|
||||
@@ -146,17 +151,7 @@ void Keyframe::AddPoint(Point p) {
|
||||
}
|
||||
}
|
||||
|
||||
// Add a new point on the key-frame, with some defaults set (BEZIER)
|
||||
void Keyframe::AddPoint(double x, double y)
|
||||
{
|
||||
// Create a point
|
||||
Point new_point(x, y, BEZIER);
|
||||
|
||||
// Add the point
|
||||
AddPoint(new_point);
|
||||
}
|
||||
|
||||
// Add a new point on the key-frame, with a specific interpolation type
|
||||
// Add a new point on the key-frame, interpolate is optional (default: BEZIER)
|
||||
void Keyframe::AddPoint(double x, double y, InterpolationType interpolate)
|
||||
{
|
||||
// Create a point
|
||||
|
||||
Reference in New Issue
Block a user