Cut: Add missed check if selected object inside update_bb()
This commit is contained in:
parent
4bb92e9c51
commit
3054156f9e
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue