diff --git a/data/voxedit-ui/ui/window/voxedit-main.tb.txt b/data/voxedit-ui/ui/window/voxedit-main.tb.txt index 859390871..e76ef3dc6 100644 --- a/data/voxedit-ui/ui/window/voxedit-main.tb.txt +++ b/data/voxedit-ui/ui/window/voxedit-main.tb.txt @@ -263,7 +263,6 @@ TBLayout: distribution: gravity, axis: y TBButton: @include: definitions>menubutton, text: Extend, id: extend, command: "resize", auto-repeat: 1 TBSkinImage: skin: voxedit-extend TBButton: @include: definitions>menubutton, text: Layer from color, id: colortolayer, command: "colortolayer" - TBButton: @include: definitions>menubutton, text: Thicken, id: thicken, command: "thicken" TBButton: @include: definitions>menubutton, text: Scale, id: scale, command: "scale" TBSection: value: 1, text: "Translate" diff --git a/src/tools/voxedit/modules/voxedit-util/SceneManager.cpp b/src/tools/voxedit/modules/voxedit-util/SceneManager.cpp index fb26f8225..fb8784d5d 100644 --- a/src/tools/voxedit/modules/voxedit-util/SceneManager.cpp +++ b/src/tools/voxedit/modules/voxedit-util/SceneManager.cpp @@ -352,26 +352,6 @@ void SceneManager::modified(int layerId, const voxel::Region& modifiedRegion, bo resetLastTrace(); } -void SceneManager::thicken(int amount) { - const glm::ivec3 dimensions(amount + 1); - _layerMgr.foreachGroupLayer([&] (int layerId) { - voxel::RawVolume* v = volume(layerId); - if (v == nullptr) { - return; - } - voxel::Region region = v->region(); - region.shiftLowerCorner(-dimensions); - region.shiftUpperCorner(dimensions); - voxel::RawVolume* thinkened = new voxel::RawVolume(region); - voxel::RawVolumeWrapper wrapper(thinkened); - voxelutil::visitVolume(*v, [&] (int32_t x, int32_t y, int32_t z, const voxel::Voxel& voxel) { - voxelgenerator::shape::createCube(wrapper, glm::ivec3(x, y, z), dimensions, voxel); - }); - setNewVolume(layerId, thinkened, true); - modified(layerId, wrapper.dirtyRegion()); - }); -} - void SceneManager::colorToNewLayer(const voxel::Voxel voxelColor) { voxel::RawVolume* newVolume = new voxel::RawVolume(region()); _layerMgr.foreachGroupLayer([&] (int layerId) { @@ -1027,15 +1007,6 @@ void SceneManager::construct() { _modifier.aabbStop(); }).setHelp("Aborts the current modifier action"); - command::Command::registerCommand("thicken", [&] (const command::CmdArgs& args) { - const int argc = args.size(); - int value = 1; - if (argc >= 1) { - value = core::string::toInt(args[0]); - } - thicken(value); - }).setHelp("Thicken existing voxels"); - command::Command::registerCommand("setvoxelresolution", [&] (const command::CmdArgs& args) { const int argc = args.size(); if (argc == 1) { diff --git a/src/tools/voxedit/modules/voxedit-util/SceneManager.h b/src/tools/voxedit/modules/voxedit-util/SceneManager.h index 005228e5c..97192f309 100644 --- a/src/tools/voxedit/modules/voxedit-util/SceneManager.h +++ b/src/tools/voxedit/modules/voxedit-util/SceneManager.h @@ -178,7 +178,6 @@ private: void moveCursor(int x, int y, int z); void colorToNewLayer(const voxel::Voxel voxelColor); - void thicken(int amount); void crop(); void scale(int layerId); void resize(const glm::ivec3& size);