Skip to content

Commit ca1ef1f

Browse files
committed
fix(core): add guard check for disposing simple planes
1 parent 26313eb commit ca1ef1f

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@thatopen/components",
33
"description": "Collection of core functionalities to author BIM apps.",
4-
"version": "2.3.11",
4+
"version": "2.3.12",
55
"author": "That Open Company",
66
"contributors": [
77
"Antonio Gonzalez Viegas (https://github.com/agviegas)",

packages/core/src/core/Clipper/src/simple-plane.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export class SimplePlane implements Disposable, Hideable {
7272
* @param {boolean} state - The new enabled state.
7373
*/
7474
set enabled(state: boolean) {
75+
if (this.world.isDisposing) {
76+
return;
77+
}
7578
if (!this.world.renderer) {
7679
throw new Error("No renderer found for clipping plane!");
7780
}

packages/core/src/core/Components/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Components implements Disposable {
1414
/**
1515
* The version of the @thatopen/components library.
1616
*/
17-
static readonly release = "2.3.11";
17+
static readonly release = "2.3.12";
1818

1919
/** {@link Disposable.onDisposed} */
2020
readonly onDisposed = new Event<void>();

0 commit comments

Comments
 (0)