@onerjs/core 8.44.4 → 8.44.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.
- package/Bones/skeleton.d.ts +6 -0
- package/Bones/skeleton.js +10 -0
- package/Bones/skeleton.js.map +1 -1
- package/Engines/Extensions/engine.rawTexture.js +2 -2
- package/Engines/Extensions/engine.rawTexture.js.map +1 -1
- package/Engines/abstractEngine.js +19 -9
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/thinEngine.js.map +1 -1
- package/FlowGraph/flowGraphCoordinator.js +5 -1
- package/FlowGraph/flowGraphCoordinator.js.map +1 -1
- package/FlowGraph/serialization.js +0 -1
- package/FlowGraph/serialization.js.map +1 -1
- package/Materials/Textures/equiRectangularCubeTexture.d.ts +5 -0
- package/Materials/Textures/equiRectangularCubeTexture.js +19 -0
- package/Materials/Textures/equiRectangularCubeTexture.js.map +1 -1
- package/Materials/materialHelper.functions.js +3 -0
- package/Materials/materialHelper.functions.js.map +1 -1
- package/Meshes/abstractMesh.js +9 -0
- package/Meshes/abstractMesh.js.map +1 -1
- package/Meshes/mesh.js +12 -8
- package/Meshes/mesh.js.map +1 -1
- package/Misc/tools.js +1 -1
- package/Misc/tools.js.map +1 -1
- package/Particles/solidParticleSystem.d.ts +1 -0
- package/Particles/solidParticleSystem.js +32 -2
- package/Particles/solidParticleSystem.js.map +1 -1
- package/Physics/v2/Plugins/havokPlugin.d.ts +5 -3
- package/Physics/v2/Plugins/havokPlugin.js +9 -5
- package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
- package/Physics/v2/physicsBody.d.ts +5 -3
- package/Physics/v2/physicsBody.js +7 -5
- package/Physics/v2/physicsBody.js.map +1 -1
- package/Rendering/boundingBoxRenderer.js +9 -4
- package/Rendering/boundingBoxRenderer.js.map +1 -1
- package/Rendering/edgesRenderer.js +7 -4
- package/Rendering/edgesRenderer.js.map +1 -1
- package/package.json +1 -1
- package/Meshes/Compression/test/integration/draco.test.d.ts +0 -1
- package/Meshes/Compression/test/integration/draco.test.js +0 -30
- package/Meshes/Compression/test/integration/draco.test.js.map +0 -1
|
@@ -684,21 +684,31 @@ export class AbstractEngine {
|
|
|
684
684
|
}, loaderOptions);
|
|
685
685
|
};
|
|
686
686
|
if (!buffer) {
|
|
687
|
-
this._loadFile(url, (data) => {
|
|
688
|
-
|
|
689
|
-
|
|
687
|
+
this._loadFile(url, async (data) => {
|
|
688
|
+
try {
|
|
689
|
+
await callbackAsync(new Uint8Array(data));
|
|
690
|
+
}
|
|
691
|
+
catch (reason) {
|
|
692
|
+
onInternalError("Failed to parse texture data", reason);
|
|
693
|
+
}
|
|
690
694
|
}, undefined, scene ? scene.offlineProvider : undefined, true, (request, exception) => {
|
|
691
695
|
onInternalError("Unable to load " + (request ? request.responseURL : url, exception));
|
|
692
696
|
});
|
|
693
697
|
}
|
|
694
698
|
else {
|
|
699
|
+
const processBufferAsync = async (data) => {
|
|
700
|
+
try {
|
|
701
|
+
await callbackAsync(data);
|
|
702
|
+
}
|
|
703
|
+
catch (reason) {
|
|
704
|
+
onInternalError("Failed to parse texture data", reason);
|
|
705
|
+
}
|
|
706
|
+
};
|
|
695
707
|
if (buffer instanceof ArrayBuffer) {
|
|
696
|
-
|
|
697
|
-
callbackAsync(new Uint8Array(buffer));
|
|
708
|
+
void processBufferAsync(new Uint8Array(buffer));
|
|
698
709
|
}
|
|
699
710
|
else if (ArrayBuffer.isView(buffer)) {
|
|
700
|
-
|
|
701
|
-
callbackAsync(buffer);
|
|
711
|
+
void processBufferAsync(buffer);
|
|
702
712
|
}
|
|
703
713
|
else {
|
|
704
714
|
if (onError) {
|
|
@@ -802,13 +812,13 @@ export class AbstractEngine {
|
|
|
802
812
|
*/
|
|
803
813
|
// Not mixed with Version for tooling purpose.
|
|
804
814
|
static get NpmPackage() {
|
|
805
|
-
return "babylonjs@8.56.
|
|
815
|
+
return "babylonjs@8.56.2";
|
|
806
816
|
}
|
|
807
817
|
/**
|
|
808
818
|
* Returns the current version of the framework
|
|
809
819
|
*/
|
|
810
820
|
static get Version() {
|
|
811
|
-
return "8.56.
|
|
821
|
+
return "8.56.2";
|
|
812
822
|
}
|
|
813
823
|
/**
|
|
814
824
|
* Gets the HTML canvas attached with the current webGL context
|