Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjythebee committed Nov 20, 2024
1 parent 42b9c72 commit 4dd48d1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/library/CharacterManifestData.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,13 @@ class TraitTexturesGroup{
trait,
collection
}= options;
if(!trait){
console.warn("TraitTexturesGroup is missing property trait")
this.trait = "undefined"+Math.floor(Math.random()*10)
}else{
this.trait = trait;
}
this.manifestData = manifestData;
this.trait = trait;

this.collection = [];
this.collectionMap = null;
Expand Down Expand Up @@ -678,8 +683,12 @@ export class DecalTextureGroup{
collection
}= options;
this.manifestData = manifestData;
this.trait = trait;

if(!trait){
console.warn("TraitTexturesGroup is missing property trait")
this.trait = "undefined"+Math.floor(Math.random()*10)
}else{
this.trait = trait;
}
this.collection = [];
this.collectionMap = null;
this.createCollection(collection);
Expand Down

0 comments on commit 4dd48d1

Please sign in to comment.