Ejemplo n.º 1
0
 @Override
 public void update(final double globalTime, final AnimationLayer layer) {
   if (!getSourceTree().setTime(globalTime, layer.getManager())) {
     final StateOwner lastOwner = getLastStateOwner();
     if (_endTransition != null) {
       // time to move to end transition
       final AbstractFiniteState newState = _endTransition.doTransition(this, layer);
       if (newState != null) {
         newState.resetClips(layer.getManager());
         newState.update(globalTime, layer);
       }
       if (this != newState) {
         lastOwner.replaceState(this, newState);
       }
     }
   }
 }
Ejemplo n.º 2
0
 @Override
 public void resetClips(final AnimationManager manager, final double globalStartTime) {
   super.resetClips(manager, globalStartTime);
   getSourceTree().resetClips(manager, globalStartTime);
 }