babylonjs-serializers 5.0.0-beta.5 → 5.0.0-beta.6

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.
@@ -2193,6 +2193,7 @@ __webpack_require__.r(__webpack_exports__);
2193
2193
 
2194
2194
 
2195
2195
 
2196
+
2196
2197
  /**
2197
2198
  * Converts Babylon Scene into glTF 2.0.
2198
2199
  * @hidden
@@ -2212,6 +2213,10 @@ var _Exporter = /** @class */ (function () {
2212
2213
  this._glTF = {
2213
2214
  asset: { generator: "BabylonJS", version: "2.0" }
2214
2215
  };
2216
+ babylonScene = babylonScene || babylonjs_Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__["EngineStore"].LastCreatedScene;
2217
+ if (!babylonScene) {
2218
+ return;
2219
+ }
2215
2220
  this._babylonScene = babylonScene;
2216
2221
  this._bufferViews = [];
2217
2222
  this._accessors = [];