mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 19:13:49 +01:00
fix previous commit
This commit is contained in:
parent
2b9eac38c7
commit
12653a16de
3
src/d3/ShapeMesh.js
vendored
3
src/d3/ShapeMesh.js
vendored
@ -62,11 +62,12 @@ class ShapeMesh extends THREE.Object3D {
|
||||
if (holes === this._holes && !this._changedGeometry) return false;
|
||||
|
||||
if (holes === null || !this._fill || this._type === 'EXPORT_SHAPE') {
|
||||
if (this._holeMeshIsOriginal) return false;
|
||||
if (this._holeMeshIsOriginal && !this._changedGeometry) return false;
|
||||
|
||||
this._holeMesh.geometry.dispose();
|
||||
this._holeMesh.geometry = new THREE.Geometry().fromBufferGeometry(this._mesh.geometry);
|
||||
this._holeMeshIsOriginal = true;
|
||||
this._changedGeometry = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user