mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-03 20:00:39 +08:00
WIP: Cut with Tongue and Groove
* Changed limit value for tolerances * Set optimize rendering value to true by default
This commit is contained in:
parent
83fa61ee41
commit
2e6d1ff08f
@ -480,6 +480,7 @@ bool GLGizmoCut3D::render_cut_mode_combo()
|
||||
|
||||
if (is_changed) {
|
||||
m_mode = size_t(selection_idx);
|
||||
update_raycasters_for_picking();
|
||||
|
||||
apply_color_clip_plane_colors();
|
||||
if (auto oc = m_c->object_clipper()) {
|
||||
@ -2205,7 +2206,7 @@ void GLGizmoCut3D::render_groove_input(const std::string& label, float& in_val,
|
||||
is_changed = true;
|
||||
}
|
||||
}
|
||||
else if (render_slider_double_input(label, in_val, in_tolerance, -0.1f, 2.0))
|
||||
else if (render_slider_double_input(label, in_val, in_tolerance, -0.1f, std::min(0.3f*in_val, 1.5f)))
|
||||
is_changed = true;
|
||||
|
||||
ImGui::SameLine();
|
||||
|
@ -125,7 +125,7 @@ class GLGizmoCut3D : public GLGizmoBase
|
||||
float m_groove_angle_init;
|
||||
float m_groove_depth_tolerance{ 0.1f };
|
||||
float m_groove_width_tolerance{ 0.1f };
|
||||
bool m_optimaze_groove_rendering{ false };
|
||||
bool m_optimaze_groove_rendering{ true };
|
||||
|
||||
bool m_hide_cut_plane{ false };
|
||||
bool m_connectors_editing{ false };
|
||||
|
Loading…
x
Reference in New Issue
Block a user