SpatialSort: use much easier reabability.
parent
ff83701a6f
commit
19d59b630b
|
@ -126,9 +126,8 @@ void SpatialSort::FindPositions( const aiVector3D& pPosition,
|
||||||
const ai_real dist = pPosition * mPlaneNormal;
|
const ai_real dist = pPosition * mPlaneNormal;
|
||||||
const ai_real minDist = dist - pRadius, maxDist = dist + pRadius;
|
const ai_real minDist = dist - pRadius, maxDist = dist + pRadius;
|
||||||
|
|
||||||
// clear the array in this strange fashion because a simple clear() would also deallocate
|
// clear the array
|
||||||
// the array which we want to avoid
|
poResults.clear();
|
||||||
poResults.erase( poResults.begin(), poResults.end());
|
|
||||||
|
|
||||||
// quick check for positions outside the range
|
// quick check for positions outside the range
|
||||||
if( mPositions.size() == 0)
|
if( mPositions.size() == 0)
|
||||||
|
|
Loading…
Reference in New Issue