mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 14:36:26 +01:00
Add null check
This commit is contained in:
parent
5a8b7f933f
commit
f6383d13c4
@ -24,6 +24,8 @@ export class PetSizeData extends AnimationSizeData
|
||||
|
||||
if(postures.defaultPosture && postures.defaultPosture.length) this._defaultPosture = postures.defaultPosture;
|
||||
|
||||
if(!postures.postures) return false;
|
||||
|
||||
for(const posture of postures.postures)
|
||||
{
|
||||
if(this._posturesToAnimations.get(posture.id)) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user