From ad7013e22854c4a1d904191ccda77281cc0bb307 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Fri, 24 Jan 2014 13:25:30 +0000 Subject: [PATCH] - 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 --- jme3-bullet/src/main/java/com/jme3/bullet/PhysicsSpace.java | 1 - jme3-jbullet/src/main/java/com/jme3/bullet/PhysicsSpace.java | 1 - 2 files changed, 2 deletions(-) diff --git a/jme3-bullet/src/main/java/com/jme3/bullet/PhysicsSpace.java b/jme3-bullet/src/main/java/com/jme3/bullet/PhysicsSpace.java index fd12dcb89..34d504744 100644 --- a/jme3-bullet/src/main/java/com/jme3/bullet/PhysicsSpace.java +++ b/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(); diff --git a/jme3-jbullet/src/main/java/com/jme3/bullet/PhysicsSpace.java b/jme3-jbullet/src/main/java/com/jme3/bullet/PhysicsSpace.java index 484f52133..e96002669 100644 --- a/jme3-jbullet/src/main/java/com/jme3/bullet/PhysicsSpace.java +++ b/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();