babylonjs-serializers 5.41.0 → 5.42.1
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/babylon.glTF2Serializer.js +9 -0
- package/babylon.glTF2Serializer.js.map +1 -1
- package/babylon.glTF2Serializer.min.js +1 -1
- package/babylon.glTF2Serializer.min.js.map +1 -1
- package/babylonjs.serializers.js +9 -0
- package/babylonjs.serializers.js.map +1 -1
- package/babylonjs.serializers.min.js +1 -1
- package/babylonjs.serializers.min.js.map +1 -1
- package/package.json +3 -3
|
@@ -4009,6 +4009,15 @@ var _Exporter = /** @class */ (function () {
|
|
|
4009
4009
|
var rootNodesToLeftHanded = [];
|
|
4010
4010
|
this._convertToRightHandedSystem = !babylonScene.useRightHandedSystem;
|
|
4011
4011
|
this._convertToRightHandedSystemMap = {};
|
|
4012
|
+
// Scene metadata
|
|
4013
|
+
if (babylonScene.metadata) {
|
|
4014
|
+
if (this._options.metadataSelector) {
|
|
4015
|
+
scene.extras = this._options.metadataSelector(babylonScene.metadata);
|
|
4016
|
+
}
|
|
4017
|
+
else if (babylonScene.metadata.gltf) {
|
|
4018
|
+
scene.extras = babylonScene.metadata.gltf.extras;
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
4012
4021
|
// Set default values for all nodes
|
|
4013
4022
|
babylonScene.rootNodes.forEach(function (rootNode) {
|
|
4014
4023
|
_this._convertToRightHandedSystemMap[rootNode.uniqueId] = _this._convertToRightHandedSystem;
|