@woosh/meep-engine 2.33.38 → 2.33.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -337,16 +337,12 @@ export class GLTFAssetLoader extends AssetLoader {
337
337
  return;
338
338
  }
339
339
 
340
- //find a child that is a mesh
341
- const meshes = scene.children.filter(isMesh);
342
340
 
343
- let root;
341
+ let root = scene;
344
342
 
345
- if (meshes.length !== 1) {
346
- //use the whole scene
347
- root = scene;
348
- } else {
349
- root = meshes[0];
343
+ if (children.length === 1 && isMesh(children[0])) {
344
+ // scene only contains a single mesh, use that directly
345
+ root = children[0];
350
346
  }
351
347
 
352
348
  traverseThreeObject(root, this.__prepareObjectMaterial, this);
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "productName": "Meep",
6
6
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.33.38",
8
+ "version": "2.33.39",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",