Skip to content

Commit

Permalink
Fix memory alignment for Eigen object in mesh loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Feb 10, 2016
1 parent 6404dda commit e4b8aa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dart/utils/SkelParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ dynamics::ShapePtr SkelParser::readShape(
const aiScene* model = dynamics::MeshShape::loadMesh(meshUri, _retriever);
if (model)
{
newShape = std::make_shared<dynamics::MeshShape>(
newShape = Eigen::make_aligned_shared<dynamics::MeshShape>(
scale, model, meshUri, _retriever);
}
else
Expand Down
2 changes: 1 addition & 1 deletion dart/utils/sdf/SdfParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ dynamics::ShapePtr SdfParser::readShape(
const aiScene* model = dynamics::MeshShape::loadMesh(meshUri, _retriever);

if (model)
newShape = std::make_shared<dynamics::MeshShape>(
newShape = Eigen::make_aligned_shared<dynamics::MeshShape>(
scale, model, meshUri, _retriever);
else
{
Expand Down

0 comments on commit e4b8aa2

Please sign in to comment.