Skip to content

Commit

Permalink
SpatialSort: use much easier reabability.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkulling committed Jun 6, 2017
1 parent ff83701 commit 19d59b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/SpatialSort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@ void SpatialSort::FindPositions( const aiVector3D& pPosition,
const ai_real dist = pPosition * mPlaneNormal;
const ai_real minDist = dist - pRadius, maxDist = dist + pRadius;

// clear the array in this strange fashion because a simple clear() would also deallocate
// the array which we want to avoid
poResults.erase( poResults.begin(), poResults.end());
// clear the array
poResults.clear();

// quick check for positions outside the range
if( mPositions.size() == 0)
Expand Down

0 comments on commit 19d59b6

Please sign in to comment.