mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 11:03:48 +01:00
fix updating hole geometry
This commit is contained in:
parent
602a334514
commit
5e27d0429d
4
src/d3/ShapeMesh.js
vendored
4
src/d3/ShapeMesh.js
vendored
@ -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
Block a user