fix updating hole geometry
This commit is contained in:
parent
602a334514
commit
5e27d0429d
|
@ -74,12 +74,12 @@ class ShapeMesh extends THREE.Object3D {
|
|||
}
|
||||
|
||||
updateHoleGeometry(holes) {
|
||||
if (!this._solid || !this._fill) return false;
|
||||
if (holes === this._holes && !this._changedGeometry) return false;
|
||||
if (!this._solid) return false;
|
||||
|
||||
this._holeMesh.geometry.dispose();
|
||||
|
||||
if (holes === null) {
|
||||
if (holes === null || !this._fill) {
|
||||
this._holeMesh.geometry = new THREE.Geometry().fromBufferGeometry(this._mesh.geometry);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue