Commit ef853722 authored by Patrik Huber's avatar Patrik Huber

Fix return type of to_matrix

This fixes a crash - it should obviously return a matrix, not a vector.
parent 6f38beaa
...@@ -89,7 +89,7 @@ inline std::vector<Blendshape> load_blendshapes(std::string filename) ...@@ -89,7 +89,7 @@ inline std::vector<Blendshape> load_blendshapes(std::string filename)
* @param[in] blendshapes Vector of blendshapes. * @param[in] blendshapes Vector of blendshapes.
* @return The resulting matrix. * @return The resulting matrix.
*/ */
inline Eigen::VectorXf to_matrix(const std::vector<Blendshape>& blendshapes) inline Eigen::MatrixXf to_matrix(const std::vector<Blendshape>& blendshapes)
{ {
assert(blendshapes.size() > 0); assert(blendshapes.size() > 0);
// Todo: Assert all blendshapes have to have the same number of rows, and one col // Todo: Assert all blendshapes have to have the same number of rows, and one col
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment