VOXEDIT: renamed command and ui options from mirror to flip
parent
176aac3919
commit
2f30e96a81
|
@ -303,13 +303,13 @@ TBLayout: distribution: gravity, axis: y
|
|||
TBButton: id: rotatez, @include: definitions>menubutton, command: "rotate 0 0 90"
|
||||
TBSkinImage: skin: voxedit-axis-z
|
||||
|
||||
TBSection: value: 1, text: "Mirror on axis"
|
||||
TBSection: value: 1, text: "Flip on axis"
|
||||
TBLayout: position: left top, axis: x
|
||||
TBButton: id: mirrorx, @include: definitions>menubutton, command: "mirror x"
|
||||
TBButton: id: mirrorx, @include: definitions>menubutton, command: "flip x"
|
||||
TBSkinImage: skin: voxedit-axis-x
|
||||
TBButton: id: mirrory, @include: definitions>menubutton, command: "mirror y"
|
||||
TBButton: id: mirrory, @include: definitions>menubutton, command: "flip y"
|
||||
TBSkinImage: skin: voxedit-axis-y
|
||||
TBButton: id: mirrorz, @include: definitions>menubutton, command: "mirror z"
|
||||
TBButton: id: mirrorz, @include: definitions>menubutton, command: "flip z"
|
||||
TBSkinImage: skin: voxedit-axis-z
|
||||
|
||||
TBSection: value: 1, text: "Mirror axis"
|
||||
|
|
|
@ -1261,9 +1261,9 @@ void SceneManager::construct() {
|
|||
}
|
||||
}).setHelp("Pick the current selected color from current cursor voxel");
|
||||
|
||||
command::Command::registerCommand("mirror", [&] (const command::CmdArgs& args) {
|
||||
command::Command::registerCommand("flip", [&] (const command::CmdArgs& args) {
|
||||
if (args.size() != 1) {
|
||||
Log::info("Usage: mirror <axis:x,y,z>");
|
||||
Log::info("Usage: flip <axis:x,y,z>");
|
||||
return;
|
||||
}
|
||||
const char axisChar = args[0][0];
|
||||
|
@ -1273,8 +1273,8 @@ void SceneManager::construct() {
|
|||
} else if (axisChar == 'z') {
|
||||
axis = math::Axis::Z;
|
||||
}
|
||||
mirror(axis);
|
||||
}).setHelp("Mirror the selected layers around the given axis");
|
||||
flip(axis);
|
||||
}).setHelp("Flip the selected layers around the given axis");
|
||||
|
||||
command::Command::registerCommand("lock", [&] (const command::CmdArgs& args) {
|
||||
if (args.size() != 1) {
|
||||
|
@ -1315,7 +1315,7 @@ void SceneManager::construct() {
|
|||
}).setHelp("Toggle center plane building");
|
||||
}
|
||||
|
||||
void SceneManager::mirror(math::Axis axis) {
|
||||
void SceneManager::flip(math::Axis axis) {
|
||||
_layerMgr.foreachGroupLayer([&] (int layerId) {
|
||||
auto* model = _volumeRenderer.volume(layerId);
|
||||
if (model == nullptr) {
|
||||
|
|
|
@ -218,7 +218,7 @@ private:
|
|||
bool extractVolume();
|
||||
void updateLockedPlane(math::Axis axis);
|
||||
void setVoxelsForCondition(std::function<voxel::Voxel()> voxel, std::function<bool(const voxel::Voxel&)> condition);
|
||||
void mirror(math::Axis axis);
|
||||
void flip(math::Axis axis);
|
||||
void updateAABBMesh();
|
||||
public:
|
||||
~SceneManager();
|
||||
|
|
Loading…
Reference in New Issue