mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 19:12:28 +02:00
removing overlay on script ending
This commit is contained in:
parent
a2ae51371b
commit
1fd0650955
1 changed files with 6 additions and 0 deletions
|
@ -142,6 +142,12 @@ function mouseReleaseEvent(event) {
|
|||
removeLine();
|
||||
}
|
||||
|
||||
function cleanup() {
|
||||
Overlays.deleteOverlay(pointerButton);
|
||||
}
|
||||
|
||||
Script.scriptEnding.connect(cleanup);
|
||||
|
||||
Controller.mouseMoveEvent.connect(mouseMoveEvent);
|
||||
Controller.mousePressEvent.connect(mousePressEvent);
|
||||
Controller.mouseReleaseEvent.connect(mouseReleaseEvent);
|
Loading…
Reference in a new issue