Explorar o código

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
rem..om %!s(int64=11) %!d(string=hai) anos
pai
achega
81b458cc4b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      engine/src/core/com/jme3/bounding/BoundingSphere.java

+ 1 - 0
engine/src/core/com/jme3/bounding/BoundingSphere.java

@@ -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;
         }