@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.
- package/OBJ/solidParser.js +1 -2
- package/OBJ/solidParser.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_animation_pointer.js +1 -2
- package/glTF/2.0/Extensions/KHR_animation_pointer.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_interactivity.js +1 -2
- package/glTF/2.0/Extensions/KHR_interactivity.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_anisotropy.js +2 -3
- package/glTF/2.0/Extensions/KHR_materials_anisotropy.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_iridescence.js +4 -5
- package/glTF/2.0/Extensions/KHR_materials_iridescence.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_transmission.js +4 -7
- package/glTF/2.0/Extensions/KHR_materials_transmission.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_variants.js +1 -2
- package/glTF/2.0/Extensions/KHR_materials_variants.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js +2 -3
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js.map +1 -1
- package/glTF/2.0/Extensions/interactivityFunctions.js +4 -6
- package/glTF/2.0/Extensions/interactivityFunctions.js.map +1 -1
- package/glTF/2.0/Extensions/interactivityUtils.js +16 -1
- package/glTF/2.0/Extensions/interactivityUtils.js.map +1 -1
- package/glTF/2.0/glTFLoader.d.ts +4 -0
- package/glTF/2.0/glTFLoader.js +7 -2
- package/glTF/2.0/glTFLoader.js.map +1 -1
- package/package.json +3 -3
package/glTF/2.0/glTFLoader.js
CHANGED
@@ -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
|
-
|
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) {
|