clear octree interval

This commit is contained in:
James B. Pollack 2016-01-29 14:29:27 -08:00
parent 5e5c6158bb
commit cb2fbd7e7f

View file

@ -22,6 +22,7 @@ function makeBoxes() {
for (i = 0; i < NUMBER_OF_BOXES; i++) { for (i = 0; i < NUMBER_OF_BOXES; i++) {
createBox(); createBox();
} }
Script.clearInterval(octreeQueryInterval);
} }
function createBox() { function createBox() {
@ -95,7 +96,7 @@ EntityViewer.setPosition({
z: 0 z: 0
}); });
EntityViewer.setKeyholeRadius(60000); EntityViewer.setKeyholeRadius(60000);
Script.setInterval(function() { var octreeQueryInterval = Script.setInterval(function() {
EntityViewer.queryOctree(); EntityViewer.queryOctree();
}, 1000); }, 1000);