Skip to content

Commit

Permalink
Made the return type of get_texture_coordinates const ref
Browse files Browse the repository at this point in the history
In PcaModel, get_triangle_list returned by value before, we changed that recently, because if called in an inner loop, it was quite time consuming. So I think it's best to also return by const-ref here.
  • Loading branch information
patrikhuber committed Oct 23, 2018
1 parent ab3696e commit 3a25d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/eos/morphablemodel/MorphableModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ class MorphableModel
*
* @return The texture coordinates for the model vertices.
*/
std::vector<std::array<double, 2>> get_texture_coordinates() const
const std::vector<std::array<double, 2>>& get_texture_coordinates() const
{
return texture_coordinates;
};
Expand Down

0 comments on commit 3a25d52

Please sign in to comment.