From 4c80633a41f5e72c3cf89cbe6256f9c2f2b6c022 Mon Sep 17 00:00:00 2001 From: Eric Levin Date: Thu, 30 Apr 2015 16:42:32 -0700 Subject: [PATCH] fixed bug where non-script related content would be deleted on script ending --- examples/grab.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/grab.js b/examples/grab.js index 71264da509..88e23c9a46 100644 --- a/examples/grab.js +++ b/examples/grab.js @@ -160,11 +160,6 @@ function keyPressEvent(event) { } } -function cleanup() { - Entities.deleteEntity(box); - Entities.deleteEntity(box2); - Entities.deleteEntity(ground); -} function setUpTestObjects() { var distance = 4; @@ -235,4 +230,3 @@ Controller.mousePressEvent.connect(mousePressEvent); Controller.mouseReleaseEvent.connect(mouseReleaseEvent); Controller.keyPressEvent.connect(keyPressEvent); Controller.keyReleaseEvent.connect(keyReleaseEvent); -Script.scriptEnding.connect(cleanup); \ No newline at end of file