mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
Closes #1065, make key pairs for mixing data unique
This commit is contained in:
parent
4416582216
commit
4f4a4e8dce
@ -1862,11 +1862,11 @@ var spine;
|
||||
throw new Error("from cannot be null.");
|
||||
if (to == null)
|
||||
throw new Error("to cannot be null.");
|
||||
var key = from.name + to.name;
|
||||
var key = from.name + "." + to.name;
|
||||
this.animationToMixTime[key] = duration;
|
||||
};
|
||||
AnimationStateData.prototype.getMix = function (from, to) {
|
||||
var key = from.name + to.name;
|
||||
var key = from.name + "." + to.name;
|
||||
var value = this.animationToMixTime[key];
|
||||
return value === undefined ? this.defaultMix : value;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1862,11 +1862,11 @@ var spine;
|
||||
throw new Error("from cannot be null.");
|
||||
if (to == null)
|
||||
throw new Error("to cannot be null.");
|
||||
var key = from.name + to.name;
|
||||
var key = from.name + "." + to.name;
|
||||
this.animationToMixTime[key] = duration;
|
||||
};
|
||||
AnimationStateData.prototype.getMix = function (from, to) {
|
||||
var key = from.name + to.name;
|
||||
var key = from.name + "." + to.name;
|
||||
var value = this.animationToMixTime[key];
|
||||
return value === undefined ? this.defaultMix : value;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1862,11 +1862,11 @@ var spine;
|
||||
throw new Error("from cannot be null.");
|
||||
if (to == null)
|
||||
throw new Error("to cannot be null.");
|
||||
var key = from.name + to.name;
|
||||
var key = from.name + "." + to.name;
|
||||
this.animationToMixTime[key] = duration;
|
||||
};
|
||||
AnimationStateData.prototype.getMix = function (from, to) {
|
||||
var key = from.name + to.name;
|
||||
var key = from.name + "." + to.name;
|
||||
var value = this.animationToMixTime[key];
|
||||
return value === undefined ? this.defaultMix : value;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1862,11 +1862,11 @@ var spine;
|
||||
throw new Error("from cannot be null.");
|
||||
if (to == null)
|
||||
throw new Error("to cannot be null.");
|
||||
var key = from.name + to.name;
|
||||
var key = from.name + "." + to.name;
|
||||
this.animationToMixTime[key] = duration;
|
||||
};
|
||||
AnimationStateData.prototype.getMix = function (from, to) {
|
||||
var key = from.name + to.name;
|
||||
var key = from.name + "." + to.name;
|
||||
var value = this.animationToMixTime[key];
|
||||
return value === undefined ? this.defaultMix : value;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1862,11 +1862,11 @@ var spine;
|
||||
throw new Error("from cannot be null.");
|
||||
if (to == null)
|
||||
throw new Error("to cannot be null.");
|
||||
var key = from.name + to.name;
|
||||
var key = from.name + "." + to.name;
|
||||
this.animationToMixTime[key] = duration;
|
||||
};
|
||||
AnimationStateData.prototype.getMix = function (from, to) {
|
||||
var key = from.name + to.name;
|
||||
var key = from.name + "." + to.name;
|
||||
var value = this.animationToMixTime[key];
|
||||
return value === undefined ? this.defaultMix : value;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1862,11 +1862,11 @@ var spine;
|
||||
throw new Error("from cannot be null.");
|
||||
if (to == null)
|
||||
throw new Error("to cannot be null.");
|
||||
var key = from.name + to.name;
|
||||
var key = from.name + "." + to.name;
|
||||
this.animationToMixTime[key] = duration;
|
||||
};
|
||||
AnimationStateData.prototype.getMix = function (from, to) {
|
||||
var key = from.name + to.name;
|
||||
var key = from.name + "." + to.name;
|
||||
var value = this.animationToMixTime[key];
|
||||
return value === undefined ? this.defaultMix : value;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user