Potree: fix polygon clipping

pull/1436/head
Piero Toffanin 2023-11-14 19:23:31 -05:00
rodzic c4b59721a3
commit 4a529baace
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -67903,13 +67903,13 @@ void main() {
this.viewer.scene.removePolygonClipVolume(polyClipVol);
}
this.viewer.renderer.domElement.removeEventListener("mouseup", insertionCallback, true);
this.viewer.renderer.domElement.removeEventListener("mouseup", insertionCallback, false);
this.viewer.removeEventListener("cancel_insertions", cancel.callback);
this.viewer.inputHandler.enabled = true;
};
this.viewer.addEventListener("cancel_insertions", cancel.callback);
this.viewer.renderer.domElement.addEventListener("mouseup", insertionCallback , true);
this.viewer.renderer.domElement.addEventListener("mouseup", insertionCallback , false);
this.viewer.inputHandler.enabled = false;
polyClipVol.addMarker();