mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-08 22:19:10 +08:00
Fixed a problem with deleting button in SLA gizmo
This commit is contained in:
parent
99f34f8321
commit
ab0d1af3ca
@ -1031,13 +1031,18 @@ RENDER_AGAIN:
|
|||||||
if (remove_selected || remove_all) {
|
if (remove_selected || remove_all) {
|
||||||
force_refresh = false;
|
force_refresh = false;
|
||||||
m_parent.set_as_dirty();
|
m_parent.set_as_dirty();
|
||||||
if (remove_all) {
|
bool was_in_editing = m_editing_mode;
|
||||||
if (!m_editing_mode)
|
if (! was_in_editing)
|
||||||
switch_to_editing_mode();
|
switch_to_editing_mode();
|
||||||
|
if (remove_all) {
|
||||||
select_point(AllPoints);
|
select_point(AllPoints);
|
||||||
delete_selected_points(true); // true - delete regardless of locked status
|
delete_selected_points(true); // true - delete regardless of locked status
|
||||||
editing_mode_apply_changes();
|
|
||||||
}
|
}
|
||||||
|
if (remove_selected)
|
||||||
|
delete_selected_points(false); // leave locked points
|
||||||
|
if (! was_in_editing)
|
||||||
|
editing_mode_apply_changes();
|
||||||
|
|
||||||
if (first_run) {
|
if (first_run) {
|
||||||
first_run = false;
|
first_run = false;
|
||||||
goto RENDER_AGAIN;
|
goto RENDER_AGAIN;
|
||||||
@ -1172,7 +1177,8 @@ void GLGizmoSlaSupports::on_load(cereal::BinaryInputArchive& ar)
|
|||||||
m_model_object_id,
|
m_model_object_id,
|
||||||
m_new_point_head_diameter,
|
m_new_point_head_diameter,
|
||||||
m_normal_cache,
|
m_normal_cache,
|
||||||
m_editing_cache
|
m_editing_cache,
|
||||||
|
m_selection_empty
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1185,7 +1191,8 @@ void GLGizmoSlaSupports::on_save(cereal::BinaryOutputArchive& ar) const
|
|||||||
m_model_object_id,
|
m_model_object_id,
|
||||||
m_new_point_head_diameter,
|
m_new_point_head_diameter,
|
||||||
m_normal_cache,
|
m_normal_cache,
|
||||||
m_editing_cache
|
m_editing_cache,
|
||||||
|
m_selection_empty
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user