Pārlūkot izejas kodu

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 11 gadi atpakaļ
vecāks
revīzija
81b458cc4b

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