Skip to content
Snippets Groups Projects
Commit 2d34c2a4 authored by Alexander Rose's avatar Alexander Rose
Browse files

fix Scene.clear not clearing primitives/volumes

parent c5871e90
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,8 @@ Note that since we don't clearly distinguish between a public and private interf ...@@ -6,6 +6,8 @@ Note that since we don't clearly distinguish between a public and private interf
## [Unreleased] ## [Unreleased]
- Fix ``Scene.clear`` not clearing primitives & volumes arrays (@JonStargaryen)
## [v3.8.2] - 2022-05-22 ## [v3.8.2] - 2022-05-22
- Fix ``Scene.opacityAverage`` not taking xray shaded into account - Fix ``Scene.opacityAverage`` not taking xray shaded into account
......
...@@ -258,6 +258,8 @@ namespace Scene { ...@@ -258,6 +258,8 @@ namespace Scene {
renderables[i].dispose(); renderables[i].dispose();
} }
renderables.length = 0; renderables.length = 0;
primitives.length = 0;
volumes.length = 0;
renderableMap.clear(); renderableMap.clear();
boundingSphereDirty = true; boundingSphereDirty = true;
boundingSphereVisibleDirty = true; boundingSphereVisibleDirty = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment