mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
[ts] Fix incorrect handling of Physics.none in Skeleton.updateWorldTransform
This commit is contained in:
parent
70865368cd
commit
f212ece369
@ -379,7 +379,7 @@ export class Skeleton {
|
|||||||
* See [World transforms](http://esotericsoftware.com/spine-runtime-skeletons#World-transforms) in the Spine
|
* See [World transforms](http://esotericsoftware.com/spine-runtime-skeletons#World-transforms) in the Spine
|
||||||
* Runtimes Guide. */
|
* Runtimes Guide. */
|
||||||
updateWorldTransform (physics: Physics) {
|
updateWorldTransform (physics: Physics) {
|
||||||
if (!physics) throw new Error("physics is undefined");
|
if (physics === undefined || physics === null) throw new Error("physics is undefined");
|
||||||
let bones = this.bones;
|
let bones = this.bones;
|
||||||
for (let i = 0, n = bones.length; i < n; i++) {
|
for (let i = 0, n = bones.length; i < n; i++) {
|
||||||
let bone = bones[i];
|
let bone = bones[i];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user