From b58c5f75dd92ce5ec46ed27f2cca68a13762ec66 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Thu, 18 Sep 2014 16:24:23 -0700 Subject: [PATCH] Fixes 0 makes a voxel when tool off --- examples/editVoxels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/editVoxels.js b/examples/editVoxels.js index a85c04dd02..f4e468fd40 100644 --- a/examples/editVoxels.js +++ b/examples/editVoxels.js @@ -1110,7 +1110,7 @@ function keyPressEvent(event) { print("Color = " + (whichColor + 1)); swatchesSound.play(whichColor); moveTools(); - } else if (event.text == "0") { + } else if (event.text == "0" && voxelToolSelected) { // Create a brand new 1 meter voxel in front of your avatar var newPosition = getNewVoxelPosition(); var newVoxel = {