From c34f76620fd9c02f161db5f2d25072a4f55c0a81 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Wed, 5 Mar 2014 10:52:46 -0800 Subject: [PATCH] fix failed create voxel with key press 0 at startup of editVoxels.js --- examples/editVoxels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/editVoxels.js b/examples/editVoxels.js index f3e3fcf46e..9a014639f0 100644 --- a/examples/editVoxels.js +++ b/examples/editVoxels.js @@ -920,7 +920,7 @@ function keyPressEvent(event) { red: colors[color].red, green: colors[color].green, blue: colors[color].blue }; - Voxels.eraseVoxel(voxelDetails.x, voxelDetails.y, voxelDetails.z, voxelDetails.s); + Voxels.eraseVoxel(newVoxel.x, newVoxel.y, newVoxel.z, newVoxel.s); Voxels.setVoxel(newVoxel.x, newVoxel.y, newVoxel.z, newVoxel.s, newVoxel.red, newVoxel.green, newVoxel.blue); setAudioPosition(); playRandomAddSound(audioOptions);