Fixes 0 makes a voxel when tool off

This commit is contained in:
Atlante45 2014-09-18 16:24:23 -07:00
parent 8a8095566b
commit b58c5f75dd

View file

@ -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 = {