From a5d7b22a1c38716d9b9a4f6dcce551a8ef65365e Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Tue, 28 Nov 2017 13:49:54 +0100 Subject: [PATCH] don't apply holes when export type = export shape --- src/d3/ShapeMesh.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d3/ShapeMesh.js b/src/d3/ShapeMesh.js index afae6a2..4166468 100644 --- a/src/d3/ShapeMesh.js +++ b/src/d3/ShapeMesh.js @@ -61,12 +61,12 @@ class ShapeMesh extends THREE.Object3D { } updateHoleGeometry(holes) { - if (holes === this._holes && !this._changedGeometry) return false; if (!this._solid) return false; + if (holes === this._holes && !this._changedGeometry) return false; this._holeMesh.geometry.dispose(); - if (holes === null || !this._fill) { + if (holes === null || !this._fill || this._type === 'EXPORT_SHAPE') { this._holeMesh.geometry = new THREE.Geometry().fromBufferGeometry(this._mesh.geometry); return true; }