diff --git a/resources/openbim-components.js b/resources/openbim-components.js index f82b9145c..b64a96bfd 100644 --- a/resources/openbim-components.js +++ b/resources/openbim-components.js @@ -121039,6 +121039,7 @@ class RoadNavigator extends Component { const dom = this.scene.uiElement.get("container").domElement; const intersects = this.highlighter.castRay(event, this.scene.camera, dom, this._curveMeshes); if (intersects) { + this.clearKPStations(); const result = intersects; const mesh = result.object; this.highlighter.select(mesh); diff --git a/src/civil/RoadNavigator/index.ts b/src/civil/RoadNavigator/index.ts index 120c3b18e..ce3c47b85 100644 --- a/src/civil/RoadNavigator/index.ts +++ b/src/civil/RoadNavigator/index.ts @@ -144,6 +144,8 @@ export abstract class RoadNavigator extends Component { ); if (intersects) { + this.clearKPStations(); + const result = intersects; const mesh = result.object as FRAGS.CurveMesh; this.highlighter.select(mesh);