mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-11-05 06:03:24 +01:00
fix holes with empty geometry
This commit is contained in:
parent
823009a6ce
commit
042eb050b9
1
src/d3/ShapesManager.js
vendored
1
src/d3/ShapesManager.js
vendored
@ -85,6 +85,7 @@ export default class ShapesManager extends THREE.Object3D {
|
||||
if (!solid && d3Visible) {
|
||||
const hole = this._meshes[id].mesh._mesh;
|
||||
const holeGeometry = new THREE.Geometry().fromBufferGeometry(hole.geometry);
|
||||
if (holeGeometry.vertices.length === 0) continue;
|
||||
const holeBSP = new THREE_BSP(holeGeometry);
|
||||
if (!this._holes) {
|
||||
this._holes = holeBSP;
|
||||
|
Loading…
Reference in New Issue
Block a user