|
@@ -50,12 +50,12 @@ module spine {
|
|
|
setMixWith (from: Animation, to: Animation, duration: number) {
|
|
|
if (from == null) throw new Error("from cannot be null.");
|
|
|
if (to == null) throw new Error("to cannot be null.");
|
|
|
- let key = from.name + to.name;
|
|
|
+ let key = from.name + "." + to.name;
|
|
|
this.animationToMixTime[key] = duration;
|
|
|
}
|
|
|
|
|
|
getMix (from: Animation, to: Animation) {
|
|
|
- let key = from.name + to.name;
|
|
|
+ let key = from.name + "." + to.name;
|
|
|
let value = this.animationToMixTime[key];
|
|
|
return value === undefined ? this.defaultMix : value;
|
|
|
}
|