Skip to content

Commit

Permalink
Fixing crashes with loading MeshShape when a null resource retriever …
Browse files Browse the repository at this point in the history
…is specified
  • Loading branch information
keenon committed Dec 2, 2021
1 parent e26ee60 commit bedf989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.0
0.6.1
2 changes: 1 addition & 1 deletion dart/dynamics/MeshShape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ MeshShape::MeshShape(
mDontFreeMesh(dontFreeMesh)
{
setMesh(
loadMesh(path, resourceRetriever), path, std::move(resourceRetriever));
resourceRetriever ? loadMesh(path, resourceRetriever) : loadMesh(path), path, std::move(resourceRetriever));
setScale(scale);
}

Expand Down

0 comments on commit bedf989

Please sign in to comment.