mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Code cleanup
This commit is contained in:
parent
e78e3ad80b
commit
0688a76c73
6 changed files with 6 additions and 180 deletions
|
@ -2176,22 +2176,16 @@ void GLCanvas3D::set_toolpath_view_type(GCodeViewer::EViewType type)
|
|||
m_gcode_viewer.set_view_type(type);
|
||||
}
|
||||
|
||||
void GLCanvas3D::set_toolpaths_z_range(const std::array<double, 2>& range)
|
||||
void GLCanvas3D::set_volumes_z_range(const std::array<double, 2>& range)
|
||||
{
|
||||
m_volumes.set_range(range[0] - 1e-6, range[1] + 1e-6);
|
||||
#if !ENABLE_SEQUENTIAL_VSLIDER
|
||||
if (m_gcode_viewer.has_data())
|
||||
m_gcode_viewer.set_layers_z_range(range);
|
||||
#endif // !ENABLE_SEQUENTIAL_VSLIDER
|
||||
}
|
||||
|
||||
#if ENABLE_SEQUENTIAL_VSLIDER
|
||||
void GLCanvas3D::set_toolpaths_z_range_2(const std::array<unsigned int, 2>& range)
|
||||
void GLCanvas3D::set_toolpaths_z_range(const std::array<unsigned int, 2>& range)
|
||||
{
|
||||
if (m_gcode_viewer.has_data())
|
||||
m_gcode_viewer.set_layers_z_range(range);
|
||||
}
|
||||
#endif // ENABLE_SEQUENTIAL_VSLIDER
|
||||
#else
|
||||
std::vector<double> GLCanvas3D::get_current_print_zs(bool active_only) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue