AnimControl.clearChannels now notify the animCycleDone on every listener for every channels before clearing the channels.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9847 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 12 years ago
parent c23685b298
commit 639de490a2
  1. 5
      engine/src/core/com/jme3/animation/AnimControl.java

@ -211,6 +211,11 @@ public final class AnimControl extends AbstractControl implements Cloneable {
* @see AnimControl#createChannel() * @see AnimControl#createChannel()
*/ */
public void clearChannels() { public void clearChannels() {
for (AnimChannel animChannel : channels) {
for (AnimEventListener list : listeners) {
list.onAnimCycleDone(this, animChannel, animChannel.getAnimationName());
}
}
channels.clear(); channels.clear();
} }

Loading…
Cancel
Save