|
@@ -121,8 +121,11 @@ public class AnimEvent extends AbstractCinematicEvent {
|
|
|
logger.log(Level.INFO, "layer={0} action={1}",
|
|
|
new Object[]{layerName, actionName});
|
|
|
|
|
|
- Action eventAction = composer.action(actionName);
|
|
|
- eventAction.setSpeed(0f);
|
|
|
+ Object layerManager = composer.getLayerManager(layerName);
|
|
|
+ if (layerManager == this) {
|
|
|
+ Action eventAction = composer.action(actionName);
|
|
|
+ eventAction.setSpeed(0f);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -144,6 +147,7 @@ public class AnimEvent extends AbstractCinematicEvent {
|
|
|
composer.setTime(layerName, 0.0);
|
|
|
}
|
|
|
eventAction.setSpeed(speed);
|
|
|
+ composer.setLayerManager(layerName, this);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -152,7 +156,12 @@ public class AnimEvent extends AbstractCinematicEvent {
|
|
|
@Override
|
|
|
public void onStop() {
|
|
|
logger.log(Level.INFO, "");
|
|
|
- composer.removeCurrentAction(layerName);
|
|
|
+
|
|
|
+ Object layerManager = composer.getLayerManager(layerName);
|
|
|
+ if (layerManager == this) {
|
|
|
+ composer.removeCurrentAction(layerName);
|
|
|
+ composer.setLayerManager(layerName, null);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|