Skip to content

Commit

Permalink
+ avoid slow heap checking in debug mode when loading a mesh file
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Aug 12, 2015
1 parent ab8d8a0 commit 7907147
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/Mesh/App/Core/Builder.cpp
Expand Up @@ -221,7 +221,11 @@ void MeshBuilder::Finish (bool freeMemory)

// free all memory of the internal structures
// Note: this scope is needed to free memory immediately
#if defined(_MSC_VER) && defined(_DEBUG)
// Just do nothing here as it may take a long time when running the debugger
#else
{ std::vector<MeshPointIterator>().swap(_pointsIterator); }
#endif
_points.clear();

SetNeighbourhood();
Expand Down

0 comments on commit 7907147

Please sign in to comment.