babylonjs-serializers 6.8.0 → 6.9.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/.npmignore +5 -0
- package/babylon.glTF2Serializer.js +6 -7
- 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 +6 -7
- package/babylonjs.serializers.js.map +1 -1
- package/babylonjs.serializers.min.js +1 -1
- package/babylonjs.serializers.min.js.map +1 -1
- package/babylonjs.serializers.module.d.ts +0 -1
- package/config.json +7 -0
- package/package.json +3 -5
- package/src/glTF2.ts +3 -0
- package/src/index.ts +3 -0
- package/src/obj.ts +3 -0
- package/src/stl.ts +3 -0
- package/tsconfig.build.json +13 -0
- package/tsconfig.json +9 -0
- package/webpack.config.js +19 -0
package/.npmignore
ADDED
|
@@ -3650,8 +3650,9 @@ var _Exporter = /** @class */ (function () {
|
|
|
3650
3650
|
* @param binaryWriter Buffer to write binary data to
|
|
3651
3651
|
*/
|
|
3652
3652
|
_Exporter.prototype._createSceneAsync = function (binaryWriter) {
|
|
3653
|
-
var _this = this;
|
|
3654
3653
|
var _a;
|
|
3654
|
+
var _this = this;
|
|
3655
|
+
var _b;
|
|
3655
3656
|
var scene = { nodes: [] };
|
|
3656
3657
|
var glTFNodeIndex;
|
|
3657
3658
|
var glTFNode;
|
|
@@ -3668,9 +3669,9 @@ var _Exporter = /** @class */ (function () {
|
|
|
3668
3669
|
}
|
|
3669
3670
|
}
|
|
3670
3671
|
// Remove no-op root nodes
|
|
3671
|
-
if (((
|
|
3672
|
-
for (var _i = 0,
|
|
3673
|
-
var rootNode =
|
|
3672
|
+
if (((_b = this._options.removeNoopRootNodes) !== null && _b !== void 0 ? _b : true) && !this._options.includeCoordinateSystemConversionNodes) {
|
|
3673
|
+
for (var _i = 0, _c = this._babylonScene.rootNodes; _i < _c.length; _i++) {
|
|
3674
|
+
var rootNode = _c[_i];
|
|
3674
3675
|
if (isNoopNode(rootNode, this._babylonScene.useRightHandedSystem)) {
|
|
3675
3676
|
removedRootNodes.add(rootNode);
|
|
3676
3677
|
// Exclude the node from list of nodes to export
|
|
@@ -3710,7 +3711,7 @@ var _Exporter = /** @class */ (function () {
|
|
|
3710
3711
|
_this._cameras.push(glTFCamera);
|
|
3711
3712
|
}
|
|
3712
3713
|
});
|
|
3713
|
-
var
|
|
3714
|
+
var exportNodes = (_a = this._getExportNodes(nodes), _a[0]), exportMaterials = _a[1];
|
|
3714
3715
|
return this._glTFMaterialExporter._convertMaterialsToGLTFAsync(exportMaterials, "image/png" /* ImageMimeType.PNG */, true).then(function () {
|
|
3715
3716
|
return _this._createNodeMapAndAnimationsAsync(exportNodes, binaryWriter).then(function (nodeMap) {
|
|
3716
3717
|
return _this._createSkinsAsync(nodeMap, binaryWriter).then(function (skinMap) {
|
|
@@ -3987,7 +3988,6 @@ var _Exporter = /** @class */ (function () {
|
|
|
3987
3988
|
_Exporter._ExtensionFactories = {};
|
|
3988
3989
|
return _Exporter;
|
|
3989
3990
|
}());
|
|
3990
|
-
|
|
3991
3991
|
/**
|
|
3992
3992
|
* @internal
|
|
3993
3993
|
*
|
|
@@ -5271,7 +5271,6 @@ var _GLTFMaterialExporter = /** @class */ (function () {
|
|
|
5271
5271
|
}());
|
|
5272
5272
|
|
|
5273
5273
|
|
|
5274
|
-
|
|
5275
5274
|
/***/ }),
|
|
5276
5275
|
|
|
5277
5276
|
/***/ "../../../lts/serializers/dist/glTF/2.0/glTFSerializer.js":
|