edzillion / blood-n-guts

Other
4 stars 16 forks source link

Rotating actorless token gives console error #273

Open dmrickey opened 3 years ago

dmrickey commented 3 years ago

Describe the bug Console error when rotating a token

DisplayObject.ts:742 Uncaught (in promise) TypeError: Cannot set property 'rotation' of null
    at e.set (DisplayObject.ts:742)
    at SplatToken.updateRotation (SplatToken.js:251)
    at blood-n-guts.js:138
    at Generator.next (<anonymous>)
    at blood-n-guts.js:14
    at new Promise (<anonymous>)
    at __awaiter (blood-n-guts.js:10)
    at updateTokenOrActorHandler (blood-n-guts.js:129)
    at Function._call (eval at <anonymous> (libWrapper-errors.js:249), <anonymous>:4:14)
    at Function.callAll (foundry.js:2456)

The error does not show up in Foundry's error notification, just in the console.

This is the blood-n-guts.js line 138 image

Versions (please complete the following information):

Additional context I'm only able to repro this with an actorless token. And I've only tried on pf1e (0.77.23). I used Drag Upload to upload a super unimportant NPC (so no stats) as an actorless token, when I rotate him I get the above error.