We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7086536 commit f212eceCopy full SHA for f212ece
spine-ts/spine-core/src/Skeleton.ts
@@ -379,7 +379,7 @@ export class Skeleton {
379
* See [World transforms](http://esotericsoftware.com/spine-runtime-skeletons#World-transforms) in the Spine
380
* Runtimes Guide. */
381
updateWorldTransform (physics: Physics) {
382
- if (!physics) throw new Error("physics is undefined");
+ if (physics === undefined || physics === null) throw new Error("physics is undefined");
383
let bones = this.bones;
384
for (let i = 0, n = bones.length; i < n; i++) {
385
let bone = bones[i];
0 commit comments