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:
parent
1fcd9526b2
commit
81b458cc4b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user