mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Disable "cut to parts" when dovetail is selected. (#6891)
* Disable "cut to parts" when dovetail is selected. Sync with latest PrusaSlicer code. Co-authored-by: YuSanka <yusanka@gmail.com>
This commit is contained in:
@@ -2772,11 +2772,16 @@ void GLGizmoCut3D::render_cut_plane_input_window(CutConnectors &connectors, floa
|
|||||||
render_part_action_line(_L("Upper part"), "##upper", m_keep_upper, m_place_on_cut_upper, m_rotate_upper);
|
render_part_action_line(_L("Upper part"), "##upper", m_keep_upper, m_place_on_cut_upper, m_rotate_upper);
|
||||||
render_part_action_line(_L("Lower part"), "##lower", m_keep_lower, m_place_on_cut_lower, m_rotate_lower);
|
render_part_action_line(_L("Lower part"), "##lower", m_keep_lower, m_place_on_cut_lower, m_rotate_lower);
|
||||||
|
|
||||||
m_imgui->disabled_begin(has_connectors);
|
m_imgui->disabled_begin(has_connectors || m_part_selection.valid() || mode == CutMode::cutTongueAndGroove);
|
||||||
|
|
||||||
|
if (m_part_selection.valid())
|
||||||
|
m_keep_as_parts = false;
|
||||||
|
|
||||||
m_imgui->bbl_checkbox(_L("Cut to parts"), m_keep_as_parts);
|
m_imgui->bbl_checkbox(_L("Cut to parts"), m_keep_as_parts);
|
||||||
if (m_keep_as_parts) {
|
if (m_keep_as_parts) {
|
||||||
m_keep_upper = true;
|
m_keep_upper = m_keep_lower = true;
|
||||||
m_keep_lower = true;
|
m_place_on_cut_upper = m_place_on_cut_lower = false;
|
||||||
|
m_rotate_upper = m_rotate_lower = false;
|
||||||
}
|
}
|
||||||
m_imgui->disabled_end();
|
m_imgui->disabled_end();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user