BoundongSphere fixed a case when intersects was not releasing the tempvars.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10954 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
rem..om 2014-01-04 11:17:55 +00:00
parent 1fcd9526b2
commit 81b458cc4b

View File

@ -725,6 +725,7 @@ public class BoundingSphere extends BoundingVolume {
float radiusSquared = getRadius() * getRadius();
float a = diff.dot(diff) - radiusSquared;
if (a <= 0.0) {
vars.release();
// in sphere
return true;
}