mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Cut Gizmo -> added movements using arrow keys:
Up arrow = increase Z by 1mm Down arrow = decrease Z by 1mm
This commit is contained in:
parent
c09091c407
commit
8453c88482
3 changed files with 22 additions and 2 deletions
|
@ -9,6 +9,8 @@
|
|||
#include <wx/stattext.h>
|
||||
#include <wx/sizer.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "slic3r/GUI/GUI_App.hpp"
|
||||
|
||||
|
||||
|
@ -189,7 +191,7 @@ void GLGizmoCut::update_max_z(const Selection& selection) const
|
|||
void GLGizmoCut::set_cut_z(double cut_z) const
|
||||
{
|
||||
// Clamp the plane to the object's bounding box
|
||||
m_cut_z = std::max(0.0, std::min(m_max_z, cut_z));
|
||||
m_cut_z = std::clamp(cut_z, 0.0, m_max_z);
|
||||
}
|
||||
|
||||
void GLGizmoCut::perform_cut(const Selection& selection)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue