game object module

This commit is contained in:
2024-11-06 20:09:02 +02:00
parent e3a2a0251d
commit 7180cfeb7f
16 changed files with 201 additions and 70 deletions
+3 -1
View File
@@ -117,7 +117,9 @@ class GameObjectsManager{
}else{
object.asset.type = 'single';
await fs.promises.copyFile(src, def + ext);
await this.addThumb(object, src);
if (['.jpg', '.png', '.webp'].includes(ext)){
await this.addThumb(object, src);
}
}
}