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 ADDED
@@ -0,0 +1,5 @@
1
+ src
2
+ config.json
3
+ tsconfig*.*
4
+ .npmignore
5
+ webpack*.*
@@ -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 (((_a = this._options.removeNoopRootNodes) !== null && _a !== void 0 ? _a : true) && !this._options.includeCoordinateSystemConversionNodes) {
3672
- for (var _i = 0, _b = this._babylonScene.rootNodes; _i < _b.length; _i++) {
3673
- var rootNode = _b[_i];
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 _c = this._getExportNodes(nodes), exportNodes = _c[0], exportMaterials = _c[1];
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":