@woosh/meep-engine 2.36.19 → 2.36.22
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.
package/engine/graphics/micron/format/serialization/collection/geometry_collection_serialization.js
CHANGED
|
@@ -61,7 +61,7 @@ export function serialize_geometry_collection(geometries, buffer) {
|
|
|
61
61
|
let geometry_occupied_count = 0;
|
|
62
62
|
const geometry_count = geometries.length;
|
|
63
63
|
for (let i = 0; i < geometry_count; i++) {
|
|
64
|
-
if (geometries[i]
|
|
64
|
+
if (geometries[i] !== undefined) {
|
|
65
65
|
geometry_occupied_count++;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -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,6 +198,13 @@ export class GLTFAssetTransformer extends AssetTransformer {
|
|
|
196
198
|
*/
|
|
197
199
|
const root = source.create();
|
|
198
200
|
|
|
201
|
+
await this.__load_mesh_micron_data(source.gltf,asset_description);
|
|
202
|
+
|
|
203
|
+
// attempt to load existing micron geometries
|
|
204
|
+
await async_traverse_three_object(root, this.__visitObjectToLoadMicron, this, {
|
|
205
|
+
asset: asset_description
|
|
206
|
+
});
|
|
207
|
+
|
|
199
208
|
const gltf_max_polycount = max_polycount(root);
|
|
200
209
|
|
|
201
210
|
if (gltf_max_polycount < this.__threshold_polycount) {
|
|
@@ -203,13 +212,6 @@ export class GLTFAssetTransformer extends AssetTransformer {
|
|
|
203
212
|
return source;
|
|
204
213
|
}
|
|
205
214
|
|
|
206
|
-
this.__load_mesh_micron_data(source.gltf,asset_description);
|
|
207
|
-
|
|
208
|
-
// attempt to load existing micron geometries
|
|
209
|
-
await async_traverse_three_object(root, this.__visitObjectToLoadMicron, this, {
|
|
210
|
-
asset: asset_description
|
|
211
|
-
});
|
|
212
|
-
|
|
213
215
|
const micron_root = await convert_three_object_to_micron(root.clone(), this.__cache);
|
|
214
216
|
micron_root.boundingSphere = root.boundingSphere;
|
|
215
217
|
|
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.22",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"gl-matrix": "3.4.3",
|
|
11
11
|
"fast-levenshtein": "2.0.6",
|