mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 13:47:59 -06: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:
parent
c552aae8a7
commit
ed41e3e5ce
1 changed files with 11 additions and 6 deletions
|
@ -2772,12 +2772,17 @@ 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);
|
||||||
m_imgui->bbl_checkbox(_L("Cut to parts"), m_keep_as_parts);
|
|
||||||
if (m_keep_as_parts) {
|
if (m_part_selection.valid())
|
||||||
m_keep_upper = true;
|
m_keep_as_parts = false;
|
||||||
m_keep_lower = true;
|
|
||||||
}
|
m_imgui->bbl_checkbox(_L("Cut to parts"), m_keep_as_parts);
|
||||||
|
if (m_keep_as_parts) {
|
||||||
|
m_keep_upper = 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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue