Visitar URL original
fix(core): reset culler state after read pixels failed · ThatOpen/engine_components@bded3c3 · GitHub
Skip to content

Commit bded3c3

Browse files
committed
fix(core): reset culler state after read pixels failed
1 parent fdacb77 commit bded3c3

4 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.2.7",
4+
"version": "2.2.8",
55
"author": "That Open Company",
66
"contributors": [
77
"Antonio Gonzalez Viegas (https://github.com/agviegas)",

‎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.2.7";
17+
static readonly release = "2.2.8";
1818

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

‎packages/core/src/core/Cullers/src/culler-renderer.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ export class CullerRenderer {
189189
);
190190
} catch (e) {
191191
// Pixels couldn't be read, possibly because culler was disposed
192+
this.needsUpdate = false;
193+
this._isWorkerBusy = false;
192194
this.renderer.setRenderTarget(null);
193195
return;
194196
}

‎packages/core/src/core/ShadowedScene/src/distance-renderer.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ void main() {
255255
} catch (e) {
256256
// Pixels couldn't be read, possibly because culler was disposed
257257
this.renderer.setRenderTarget(null);
258+
this._isWorkerBusy = false;
258259
return;
259260
}
260261

0 commit comments

Comments
 (0)