mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[ts][pixi-v8] Removed useless warning about update invocation with autoUpdate.
This commit is contained in:
parent
fb3855ad65
commit
814f0ae8fd
@ -213,7 +213,6 @@ export class Spine extends ViewContainer {
|
||||
this._debug = value;
|
||||
}
|
||||
|
||||
private autoUpdateWarned = false;
|
||||
private _autoUpdate = true;
|
||||
|
||||
public get autoUpdate (): boolean {
|
||||
@ -223,9 +222,7 @@ export class Spine extends ViewContainer {
|
||||
public set autoUpdate (value: boolean) {
|
||||
if (value) {
|
||||
Ticker.shared.add(this.internalUpdate, this);
|
||||
this.autoUpdateWarned = false;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
Ticker.shared.remove(this.internalUpdate, this);
|
||||
}
|
||||
|
||||
@ -262,11 +259,6 @@ export class Spine extends ViewContainer {
|
||||
|
||||
/** If {@link Spine.autoUpdate} is `false`, this method allows to update the AnimationState and the Skeleton with the given delta. */
|
||||
public update (dt: number): void {
|
||||
if (this.autoUpdate && !this.autoUpdateWarned) {
|
||||
console.warn('You are calling update on a Spine instance that has autoUpdate set to true. This is probably not what you want.');
|
||||
this.autoUpdateWarned = true;
|
||||
}
|
||||
|
||||
this.internalUpdate(0, dt);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user