From c28dfdafbd52a0e1df95c5afd4e90a654e95bdd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20LAGIER?= Date: Mon, 22 May 2023 14:51:54 +0200 Subject: [PATCH] remove useless buffer.flags & flags2 arrays --- .../lib/layers/linesBatching/LinesBatchingBuffer.js | 2 -- .../lib/layers/pointsBatching/PointsBatchingBuffer.js | 2 -- .../lib/layers/trianglesBatching/TrianglesBatchingBuffer.js | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/viewer/scene/models/VBOSceneModel/lib/layers/linesBatching/LinesBatchingBuffer.js b/src/viewer/scene/models/VBOSceneModel/lib/layers/linesBatching/LinesBatchingBuffer.js index 80c6d5208a..175c4a5e97 100644 --- a/src/viewer/scene/models/VBOSceneModel/lib/layers/linesBatching/LinesBatchingBuffer.js +++ b/src/viewer/scene/models/VBOSceneModel/lib/layers/linesBatching/LinesBatchingBuffer.js @@ -13,8 +13,6 @@ class LinesBatchingBuffer { this.maxIndices = maxGeometryBatchSize * 3; // Rough rule-of-thumb this.positions = []; this.colors = []; - this.flags = []; - this.flags2 = []; this.offsets = []; this.indices = []; } diff --git a/src/viewer/scene/models/VBOSceneModel/lib/layers/pointsBatching/PointsBatchingBuffer.js b/src/viewer/scene/models/VBOSceneModel/lib/layers/pointsBatching/PointsBatchingBuffer.js index ecce1044f7..3fb1525b31 100644 --- a/src/viewer/scene/models/VBOSceneModel/lib/layers/pointsBatching/PointsBatchingBuffer.js +++ b/src/viewer/scene/models/VBOSceneModel/lib/layers/pointsBatching/PointsBatchingBuffer.js @@ -15,8 +15,6 @@ class PointsBatchingBuffer { this.colors = []; this.intensities = []; this.pickColors = []; - this.flags = []; - this.flags2 = []; this.offsets = []; } } diff --git a/src/viewer/scene/models/VBOSceneModel/lib/layers/trianglesBatching/TrianglesBatchingBuffer.js b/src/viewer/scene/models/VBOSceneModel/lib/layers/trianglesBatching/TrianglesBatchingBuffer.js index b703858911..865a36290e 100644 --- a/src/viewer/scene/models/VBOSceneModel/lib/layers/trianglesBatching/TrianglesBatchingBuffer.js +++ b/src/viewer/scene/models/VBOSceneModel/lib/layers/trianglesBatching/TrianglesBatchingBuffer.js @@ -17,8 +17,6 @@ class TrianglesBatchingBuffer { this.metallicRoughness = []; this.normals = []; this.pickColors = []; - this.flags = []; - this.flags2 = []; this.offsets = []; this.indices = []; this.edgeIndices = [];