diff --git a/examples/edit.js b/examples/edit.js index c1819cfc30..53478b4c90 100644 --- a/examples/edit.js +++ b/examples/edit.js @@ -180,7 +180,6 @@ var toolBar = (function() { newTextButton, newWebButton, newZoneButton, - newPolyVoxButton, newParticleButton function initialize() { @@ -305,20 +304,6 @@ var toolBar = (function() { visible: false }); - newPolyVoxButton = toolBar.addTool({ - imageURL: toolIconUrl + "polyvox.svg", - subImage: { - x: 0, - y: 0, - width: 256, - height: 256 - }, - width: toolWidth, - height: toolHeight, - alpha: 0.9, - visible: false - }); - newParticleButton = toolBar.addTool({ imageURL: toolIconUrl + "particle.svg", subImage: { @@ -379,7 +364,6 @@ var toolBar = (function() { toolBar.showTool(newTextButton, doShow); toolBar.showTool(newWebButton, doShow); toolBar.showTool(newZoneButton, doShow); - toolBar.showTool(newPolyVoxButton, doShow); toolBar.showTool(newParticleButton, doShow); }; @@ -551,92 +535,6 @@ var toolBar = (function() { return true; } - if (newPolyVoxButton === toolBar.clicked(clickedOverlay)) { - var polyVoxId = createNewEntity({ - type: "PolyVox", - dimensions: { - x: 10, - y: 10, - z: 10 - }, - voxelVolumeSize: { - x: 16, - y: 16, - z: 16 - }, - voxelSurfaceStyle: 2 - }); - for (var x = 1; x <= 14; x++) { - Entities.setVoxel(polyVoxId, { - x: x, - y: 1, - z: 1 - }, 255); - Entities.setVoxel(polyVoxId, { - x: x, - y: 14, - z: 1 - }, 255); - Entities.setVoxel(polyVoxId, { - x: x, - y: 1, - z: 14 - }, 255); - Entities.setVoxel(polyVoxId, { - x: x, - y: 14, - z: 14 - }, 255); - } - for (var y = 2; y <= 13; y++) { - Entities.setVoxel(polyVoxId, { - x: 1, - y: y, - z: 1 - }, 255); - Entities.setVoxel(polyVoxId, { - x: 14, - y: y, - z: 1 - }, 255); - Entities.setVoxel(polyVoxId, { - x: 1, - y: y, - z: 14 - }, 255); - Entities.setVoxel(polyVoxId, { - x: 14, - y: y, - z: 14 - }, 255); - } - for (var z = 2; z <= 13; z++) { - Entities.setVoxel(polyVoxId, { - x: 1, - y: 1, - z: z - }, 255); - Entities.setVoxel(polyVoxId, { - x: 14, - y: 1, - z: z - }, 255); - Entities.setVoxel(polyVoxId, { - x: 1, - y: 14, - z: z - }, 255); - Entities.setVoxel(polyVoxId, { - x: 14, - y: 14, - z: z - }, 255); - } - - - return true; - } - if (newParticleButton === toolBar.clicked(clickedOverlay)) { createNewEntity({ type: "ParticleEffect",