@babylonjs/loaders 6.37.1 → 6.38.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -148,6 +148,12 @@ export class GLTFLoader {
148
148
  get rootBabylonMesh() {
149
149
  return this._rootBabylonMesh;
150
150
  }
151
+ /**
152
+ * The root url when loading the asset.
153
+ */
154
+ get rootUrl() {
155
+ return this._rootUrl;
156
+ }
151
157
  /**
152
158
  * @internal
153
159
  */
@@ -1552,8 +1558,7 @@ export class GLTFLoader {
1552
1558
  * @internal
1553
1559
  */
1554
1560
  _loadVertexAccessorAsync(context, accessor, kind) {
1555
- var _a;
1556
- if ((_a = accessor._babylonVertexBuffer) === null || _a === void 0 ? void 0 : _a[kind]) {
1561
+ if (accessor._babylonVertexBuffer?.[kind]) {
1557
1562
  return accessor._babylonVertexBuffer[kind];
1558
1563
  }
1559
1564
  if (!accessor._babylonVertexBuffer) {