mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 03:22:01 +08:00
Cut: Add missed check if selected object inside update_bb()
This commit is contained in:
parent
4bb92e9c51
commit
3054156f9e
@ -1300,7 +1300,8 @@ BoundingBoxf3 GLGizmoCut3D::transformed_bounding_box(const Vec3d& plane_center,
|
||||
void GLGizmoCut3D::update_bb()
|
||||
{
|
||||
const BoundingBoxf3 box = bounding_box();
|
||||
if (!box.defined)
|
||||
CommonGizmosDataObjects::SelectionInfo* selection = m_c->selection_info();
|
||||
if (!box.defined || !selection || !selection->model_object())
|
||||
return;
|
||||
if (m_max_pos != box.max || m_min_pos != box.min) {
|
||||
|
||||
@ -1338,7 +1339,7 @@ void GLGizmoCut3D::update_bb()
|
||||
on_unregister_raycasters_for_picking();
|
||||
|
||||
clear_selection();
|
||||
if (CommonGizmosDataObjects::SelectionInfo* selection = m_c->selection_info())
|
||||
if (selection->model_object())
|
||||
m_selected.resize(selection->model_object()->cut_connectors.size(), false);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user