You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Keyframe: Replace pair vector w/ CoordinateVector
This commit is contained in:
@@ -129,9 +129,9 @@ Keyframe::Keyframe(double value) {
|
||||
Keyframe::Keyframe(const std::vector<Point>& points) : Points(points) {};
|
||||
|
||||
// Constructor which takes a vector of std::pair tuples (and adds them all)
|
||||
Keyframe::Keyframe(const std::vector<std::pair<double, double>>& coordinates) {
|
||||
for (const auto& pair : coordinates) {
|
||||
AddPoint(Point(pair.first, pair.second));
|
||||
Keyframe::Keyframe(const std::vector<Coordinate>& coordinates) {
|
||||
for (const auto& co : coordinates) {
|
||||
AddPoint(Point(co));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user