Fixed a case when the SLA gizmo did not calculate igl mesh and aabb tree even though it should
This commit is contained in:
parent
fdf59f756c
commit
5f81328aa4
1 changed files with 2 additions and 1 deletions
|
@ -1954,7 +1954,8 @@ void GLGizmoSlaSupports::render_points(const GLCanvas3D::Selection& selection, b
|
||||||
|
|
||||||
bool GLGizmoSlaSupports::is_mesh_update_necessary() const
|
bool GLGizmoSlaSupports::is_mesh_update_necessary() const
|
||||||
{
|
{
|
||||||
return (m_state == On) && (m_model_object != m_old_model_object) && (m_model_object != nullptr) && !m_model_object->instances.empty();
|
return ((m_state == On) && (m_model_object != nullptr) && !m_model_object->instances.empty())
|
||||||
|
&& ((m_model_object != m_old_model_object) || m_V.size()==0);
|
||||||
|
|
||||||
//if (m_state != On || !m_model_object || m_model_object->instances.empty() || ! m_instance_matrix.isApprox(m_source_data.matrix))
|
//if (m_state != On || !m_model_object || m_model_object->instances.empty() || ! m_instance_matrix.isApprox(m_source_data.matrix))
|
||||||
// return false;
|
// return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue