@umicat/three-sdk 1.28.0 → 1.29.0
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/dist/scene3d.js +10 -3
- package/package.json +1 -1
package/dist/scene3d.js
CHANGED
|
@@ -306,9 +306,16 @@ export function validateScene(scene) {
|
|
|
306
306
|
ids.add(e.id);
|
|
307
307
|
const kinds = [e.modelAssetId && 'model', e.primitive && 'primitive',
|
|
308
308
|
e.heightfield && 'heightfield', e.water && 'water'].filter(Boolean);
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
309
|
+
// An entity with no geometry is a GROUP (or folder) node, and that is
|
|
310
|
+
// legitimate — `loadScene3D` builds it as a bare `THREE.Group`, which is
|
|
311
|
+
// exactly what ADR-045's "Group as Model" creates and what organising a
|
|
312
|
+
// scene into folders needs. Unity and Unreal treat an empty
|
|
313
|
+
// GameObject/Actor the same way: completely ordinary, never warned about.
|
|
314
|
+
//
|
|
315
|
+
// This used to be an error, and it made "Group as Model" produce a scene
|
|
316
|
+
// that could not be RELOADED: grouping worked live, then the next editor
|
|
317
|
+
// open, Play or rebuild threw out of `loadScene3D` and blanked the whole
|
|
318
|
+
// scene. You had to group AND reload to see it, which is why it survived.
|
|
312
319
|
if (kinds.length > 1) {
|
|
313
320
|
problems.push(`entity '${e.id}' is ${kinds.join(' and ')} at once — an entity can only be one kind of thing`);
|
|
314
321
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umicat/three-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"description": "Three.js runtime for Umicat games: the scene3d design format, its loader with physics, a kinematic character controller, and the Umicat platform via @umicat/platform-sdk.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|