mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 19:13:49 +01:00
don't apply holes when export type = export shape
This commit is contained in:
parent
a5dcb91cf5
commit
a5d7b22a1c
4
src/d3/ShapeMesh.js
vendored
4
src/d3/ShapeMesh.js
vendored
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user