From 231d76d00d40af98229e0893d53bdb7f740062b9 Mon Sep 17 00:00:00 2001 From: Thomas Dimson Date: Mon, 24 May 2021 23:43:26 -0700 Subject: [PATCH] Fix removed export of 'Geometry' --- src/VoxelLoader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/VoxelLoader.js b/src/VoxelLoader.js index 92cddc0..7ffa143 100644 --- a/src/VoxelLoader.js +++ b/src/VoxelLoader.js @@ -3,7 +3,7 @@ */ import autoBind from 'auto-bind'; -import { Color, BufferGeometry, MeshPhongMaterial, BoxGeometry, Vector3, Mesh, Geometry, VertexColors } from 'three'; +import { Color, BufferGeometry, MeshPhongMaterial, BoxGeometry, Vector3, Mesh, VertexColors } from 'three'; import { LoaderFactory } from "./loaders/LoaderFactory"; import { levelOfDetail } from './mixins/levelOfDetail'; @@ -38,7 +38,7 @@ export class VoxelLoader { }); material = typeof material !== 'undefined' ? material : defaultMaterial; - material.vertexColors = VertexColors + material.vertexColors = VertexColors; this.material = material; } @@ -111,7 +111,7 @@ export class VoxelLoader { */ generateMesh(octree) { - let mergedGeometry = new Geometry(); + let mergedGeometry = new BoxGeometry(); const material = this.material; for (const leaf of octree.leaves()) {