diff --git a/src/visGeometry/index.ts b/src/visGeometry/index.ts index 54260836..1fd2aa31 100644 --- a/src/visGeometry/index.ts +++ b/src/visGeometry/index.ts @@ -1906,6 +1906,8 @@ class VisGeometry { } public clearForNewTrajectory(): void { + // only gets called by the parent app by calling + // clearFile on the controller this.legacyRenderer.beginUpdate(this.scene); this.legacyRenderer.endUpdate(this.scene); this.resetMapping(); @@ -1914,7 +1916,7 @@ class VisGeometry { this.visAgentInstances.clear(); this.visAgents = []; this.currentSceneData = nullCachedFrame(); - + this.availableAgentPool = []; this.dehighlight(); }