@woosh/meep-engine 2.36.19 → 2.36.20
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.
|
@@ -8,7 +8,9 @@ import { convert_three_object_to_micron } from "../convert_three_object_to_micro
|
|
|
8
8
|
import { compute_geometry_polycount } from "../../geometry/compute_geometry_polycount.js";
|
|
9
9
|
import { traverseThreeObject } from "../../ecs/highlight/renderer/traverseThreeObject.js";
|
|
10
10
|
import { max2 } from "../../../../core/math/max2.js";
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
deserialize_geometry_collection
|
|
13
|
+
} from "../format/serialization/collection/geometry_collection_serialization.js";
|
|
12
14
|
import { GLTF_MICRON_ID_FIELD } from "./GLTF_MICRON_ID_FIELD.js";
|
|
13
15
|
|
|
14
16
|
export const ASSET_TYPE_ARRAY_BUFFER = "arraybuffer";
|
|
@@ -196,12 +198,6 @@ export class GLTFAssetTransformer extends AssetTransformer {
|
|
|
196
198
|
*/
|
|
197
199
|
const root = source.create();
|
|
198
200
|
|
|
199
|
-
const gltf_max_polycount = max_polycount(root);
|
|
200
|
-
|
|
201
|
-
if (gltf_max_polycount < this.__threshold_polycount) {
|
|
202
|
-
// no change, geometries are too small
|
|
203
|
-
return source;
|
|
204
|
-
}
|
|
205
201
|
|
|
206
202
|
this.__load_mesh_micron_data(source.gltf,asset_description);
|
|
207
203
|
|
|
@@ -210,6 +206,13 @@ export class GLTFAssetTransformer extends AssetTransformer {
|
|
|
210
206
|
asset: asset_description
|
|
211
207
|
});
|
|
212
208
|
|
|
209
|
+
const gltf_max_polycount = max_polycount(root);
|
|
210
|
+
|
|
211
|
+
if (gltf_max_polycount < this.__threshold_polycount) {
|
|
212
|
+
// no change, geometries are too small
|
|
213
|
+
return source;
|
|
214
|
+
}
|
|
215
|
+
|
|
213
216
|
const micron_root = await convert_three_object_to_micron(root.clone(), this.__cache);
|
|
214
217
|
micron_root.boundingSphere = root.boundingSphere;
|
|
215
218
|
|
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.36.
|
|
8
|
+
"version": "2.36.20",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"gl-matrix": "3.4.3",
|
|
11
11
|
"fast-levenshtein": "2.0.6",
|