Forráskód Böngészése

- fix bullet physics space to execute all tasks, thanks to @madjack

git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@11002 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 11 éve
szülő
commit
ad7013e228

+ 0 - 1
jme3-bullet/src/main/java/com/jme3/bullet/PhysicsSpace.java

@@ -190,7 +190,6 @@ public class PhysicsSpace {
 
     private void preTick_native(float f) {
         AppTask task = pQueue.poll();
-        task = pQueue.poll();
         while (task != null) {
             while (task.isCancelled()) {
                 task = pQueue.poll();

+ 0 - 1
jme3-jbullet/src/main/java/com/jme3/bullet/PhysicsSpace.java

@@ -242,7 +242,6 @@ public class PhysicsSpace {
             public void internalTick(DynamicsWorld dw, float f) {
                 //execute task list
                 AppTask task = pQueue.poll();
-                task = pQueue.poll();
                 while (task != null) {
                     while (task.isCancelled()) {
                         task = pQueue.poll();