Keyframe: Get rid of vector aliases, Coord ctor

This commit is contained in:
FeRD (Frank Dana)
2021-01-29 03:42:56 -05:00
parent 37bb2f6f9f
commit 0fe84d36f6
3 changed files with 3 additions and 15 deletions

View File

@@ -128,13 +128,6 @@ Keyframe::Keyframe(double value) {
// Constructor which takes a vector of Points
Keyframe::Keyframe(const std::vector<openshot::Point>& points) : Points(points) {};
// Constructor which takes a vector of std::pair tuples (and adds them all)
Keyframe::Keyframe(const std::vector<openshot::Coordinate>& coordinates) {
for (const auto& co : coordinates) {
AddPoint(Point(co));
}
}
// Add a new point on the key-frame. Each point has a primary coordinate,
// a left handle, and a right handle.
void Keyframe::AddPoint(Point p) {