mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 20:56:03 +08: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
@ -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("Lower part"), "##lower", m_keep_lower, m_place_on_cut_lower, m_rotate_lower);
|
||||
|
||||
m_imgui->disabled_begin(has_connectors);
|
||||
m_imgui->bbl_checkbox(_L("Cut to parts"), m_keep_as_parts);
|
||||
if (m_keep_as_parts) {
|
||||
m_keep_upper = true;
|
||||
m_keep_lower = true;
|
||||
}
|
||||
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);
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user