don't apply holes when export type = export shape

This commit is contained in:
casperlamboo 2017-11-28 13:49:54 +01:00
parent a5dcb91cf5
commit a5d7b22a1c

4
src/d3/ShapeMesh.js vendored
View File

@ -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;
}