Fixed minor race condition between mouse clicks and TESR in the animation example.

This commit is contained in:
RainWarrior committed 2016-01-25 17:39:43 +03:00
1 parent e929199758
commit 960717eb0c
3 files changed
+24 -2

No files matched your search

@@ -314,7 +314,7 @@ public class ModelAnimationDebug
}*/
else if(asm.currentState().equals("default"))
{
float time = Animation.getWorldTime(getWorld());
float time = Animation.getWorldTime(getWorld(), Animation.getPartialTickTime());
clickTime.setValue(time);
//offset.setValue(time);
//asm.transition("moving");
@@ -322,7 +322,7 @@ public class ModelAnimationDebug
}
else if(asm.currentState().equals("moving"))
{
clickTime.setValue(Animation.getWorldTime(getWorld()));
clickTime.setValue(Animation.getWorldTime(getWorld(), Animation.getPartialTickTime()));
asm.transition("stopping");
}
}