fix npe when no inner polys
This commit is contained in:
parent
7c56383b82
commit
c9d47aa764
1 changed files with 3 additions and 1 deletions
|
|
@ -763,7 +763,9 @@ var gs_kiri_cam = exports;
|
|||
let parent = poly.parent;
|
||||
if (np.isClosed() && parent) {
|
||||
// console.log(slice.z,'cull',poly);
|
||||
parent.inner = parent.inner.filter(p => p !== poly);
|
||||
if (parent.inner) {
|
||||
parent.inner = parent.inner.filter(p => p !== poly);
|
||||
}
|
||||
if (only_whole) {
|
||||
nups.append(np);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue