Animator is stopped only if it is currently animating.
This commit is contained in:
parent
23a0800e1d
commit
6dace77a7a
@ -65,6 +65,7 @@ public class JoglCanvas extends JoglAbstractDisplay implements JmeCanvasContext
|
|||||||
public void destroy(boolean waitFor){
|
public void destroy(boolean waitFor){
|
||||||
if (waitFor)
|
if (waitFor)
|
||||||
waitFor(false);
|
waitFor(false);
|
||||||
|
if (animator.isAnimating())
|
||||||
animator.stop();
|
animator.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ public class JoglNewtCanvas extends JoglNewtAbstractDisplay implements JmeCanvas
|
|||||||
public void destroy(boolean waitFor){
|
public void destroy(boolean waitFor){
|
||||||
if (waitFor)
|
if (waitFor)
|
||||||
waitFor(false);
|
waitFor(false);
|
||||||
|
if (animator.isAnimating())
|
||||||
animator.stop();
|
animator.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user