babylonjs-loaders 7.18.0 → 7.19.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/babylon.glTF1FileLoader.js +14 -1
- package/babylon.glTF1FileLoader.min.js +1 -1
- package/babylon.glTF1FileLoader.min.js.map +1 -1
- package/babylon.glTF2FileLoader.js +37 -13
- package/babylon.glTF2FileLoader.min.js +1 -1
- package/babylon.glTF2FileLoader.min.js.map +1 -1
- package/babylon.glTFFileLoader.js +37 -13
- package/babylon.glTFFileLoader.min.js +1 -1
- package/babylon.glTFFileLoader.min.js.map +1 -1
- package/babylonjs.loaders.d.ts +15 -0
- package/babylonjs.loaders.js +37 -13
- package/babylonjs.loaders.min.js +1 -1
- package/babylonjs.loaders.min.js.map +1 -1
- package/babylonjs.loaders.module.d.ts +30 -0
- package/package.json +3 -3
|
@@ -183,6 +183,19 @@ export class GLTFFileLoader implements IDisposable, ISceneLoaderPluginAsync, ISc
|
|
|
183
183
|
* The animation start mode. Defaults to FIRST.
|
|
184
184
|
*/
|
|
185
185
|
animationStartMode: GLTFLoaderAnimationStartMode;
|
|
186
|
+
/**
|
|
187
|
+
* Defines if the loader should load node animations. Defaults to true.
|
|
188
|
+
* NOTE: The animation of this node will still load if the node is also a joint of a skin and `loadSkins` is true.
|
|
189
|
+
*/
|
|
190
|
+
loadNodeAnimations: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Defines if the loader should load skins. Defaults to true.
|
|
193
|
+
*/
|
|
194
|
+
loadSkins: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* Defines if the loader should load morph targets. Defaults to true.
|
|
197
|
+
*/
|
|
198
|
+
loadMorphTargets: boolean;
|
|
186
199
|
/**
|
|
187
200
|
* Defines if the loader should compile materials before raising the success callback. Defaults to false.
|
|
188
201
|
*/
|
|
@@ -638,6 +651,8 @@ export interface INode extends GLTF2.INode, IArrayItem {
|
|
|
638
651
|
_primitiveBabylonMeshes?: AbstractMesh[];
|
|
639
652
|
/** @internal */
|
|
640
653
|
_numMorphTargets?: number;
|
|
654
|
+
/** @internal */
|
|
655
|
+
_isJoint?: boolean;
|
|
641
656
|
}
|
|
642
657
|
/** @internal */
|
|
643
658
|
export interface _ISamplerData {
|
|
@@ -4423,6 +4438,19 @@ declare module BABYLON {
|
|
|
4423
4438
|
* The animation start mode. Defaults to FIRST.
|
|
4424
4439
|
*/
|
|
4425
4440
|
animationStartMode: GLTFLoaderAnimationStartMode;
|
|
4441
|
+
/**
|
|
4442
|
+
* Defines if the loader should load node animations. Defaults to true.
|
|
4443
|
+
* NOTE: The animation of this node will still load if the node is also a joint of a skin and `loadSkins` is true.
|
|
4444
|
+
*/
|
|
4445
|
+
loadNodeAnimations: boolean;
|
|
4446
|
+
/**
|
|
4447
|
+
* Defines if the loader should load skins. Defaults to true.
|
|
4448
|
+
*/
|
|
4449
|
+
loadSkins: boolean;
|
|
4450
|
+
/**
|
|
4451
|
+
* Defines if the loader should load morph targets. Defaults to true.
|
|
4452
|
+
*/
|
|
4453
|
+
loadMorphTargets: boolean;
|
|
4426
4454
|
/**
|
|
4427
4455
|
* Defines if the loader should compile materials before raising the success callback. Defaults to false.
|
|
4428
4456
|
*/
|
|
@@ -4871,6 +4899,8 @@ declare module BABYLON.GLTF2.Loader {
|
|
|
4871
4899
|
_primitiveBabylonMeshes?: AbstractMesh[];
|
|
4872
4900
|
/** @internal */
|
|
4873
4901
|
_numMorphTargets?: number;
|
|
4902
|
+
/** @internal */
|
|
4903
|
+
_isJoint?: boolean;
|
|
4874
4904
|
}
|
|
4875
4905
|
/** @internal */
|
|
4876
4906
|
export interface _ISamplerData {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-loaders",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.19.0",
|
|
4
4
|
"main": "babylonjs.loaders.js",
|
|
5
5
|
"types": "babylonjs.loaders.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"test:escheck": "es-check es6 ./babylonjs.loaders.js"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"babylonjs": "^7.
|
|
19
|
-
"babylonjs-gltf2interface": "^7.
|
|
18
|
+
"babylonjs": "^7.19.0",
|
|
19
|
+
"babylonjs-gltf2interface": "^7.19.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@dev/build-tools": "1.0.0",
|