New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@babylonjs/serializers

Package Overview
Dependencies
Maintainers
0
Versions
581
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babylonjs/serializers - npm Package Compare versions

Comparing version

to
7.51.2

7

glTF/2.0/glTFExporter.js

@@ -975,4 +975,3 @@ import { TmpVectors, Quaternion, Matrix } from "@babylonjs/core/Maths/math.vector.js";

}
_exportIndices(indices, start, count, offset, fillMode, sideOrientation, state, primitive) {
const is32Bits = AreIndices32Bits(indices, count);
_exportIndices(indices, is32Bits, start, count, offset, fillMode, sideOrientation, state, primitive) {
let indicesToExport = indices;

@@ -1016,3 +1015,3 @@ primitive.mode = GetPrimitiveMode(fillMode);

if (accessorIndex === undefined) {
const bytes = IndicesArrayToTypedArray(indicesToExport, start, count, is32Bits);
const bytes = IndicesArrayToTypedArray(indicesToExport, 0, count, is32Bits);
const bufferView = this._bufferManager.createBufferView(bytes);

@@ -1130,3 +1129,3 @@ const componentType = is32Bits ? 5125 /* AccessorComponentType.UNSIGNED_INT */ : 5123 /* AccessorComponentType.UNSIGNED_SHORT */;

const sideOrientation = babylonMaterial._getEffectiveOrientation(babylonMesh);
this._exportIndices(indices, subMesh.indexStart, subMesh.indexCount, -subMesh.verticesStart, fillMode, sideOrientation, state, primitive);
this._exportIndices(indices, indices ? AreIndices32Bits(indices, subMesh.indexCount, subMesh.indexStart, subMesh.verticesStart) : subMesh.verticesCount > 65535, indices ? subMesh.indexStart : subMesh.verticesStart, indices ? subMesh.indexCount : subMesh.verticesCount, -subMesh.verticesStart, fillMode, sideOrientation, state, primitive);
// Vertex buffers

@@ -1133,0 +1132,0 @@ for (const vertexBuffer of Object.values(vertexBuffers)) {

{
"name": "@babylonjs/serializers",
"version": "7.51.1",
"version": "7.51.2",
"main": "index.js",

@@ -21,6 +21,6 @@ "module": "index.js",

"devDependencies": {
"@babylonjs/core": "^7.51.1",
"@babylonjs/core": "^7.51.2",
"@dev/build-tools": "^1.0.0",
"@lts/serializers": "^1.0.0",
"babylonjs-gltf2interface": "^7.51.1"
"babylonjs-gltf2interface": "^7.51.2"
},

@@ -27,0 +27,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet