Skip to content

Commit

Permalink
fix remove
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Dec 14, 2017
1 parent 3d7a3ae commit 05cd09e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/surface_mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ void SurfaceMesh::addVectorQuantity(std::string name, FaceData<Vector3>& value,
}

void SurfaceMesh::removeQuantity(std::string name) {
if (quantities.find(name) != quantities.end()) {
if (quantities.find(name) == quantities.end()) {
return;
}

Expand All @@ -390,4 +390,4 @@ void SurfaceMesh::clearActiveSurfaceQuantity() {
}
}

} // namespace polyscope
} // namespace polyscope

0 comments on commit 05cd09e

Please sign in to comment.