Don't calculate the AABB tree in FDM mode

This commit is contained in:
Lukas Matena 2020-02-08 17:17:51 +01:00
parent 6dd79d4923
commit 79ce691d58

View file

@ -353,13 +353,15 @@ void GLGizmosManager::set_sla_support_data(ModelObject* model_object)
// Update common data for hollowing and sla support gizmos. // Update common data for hollowing and sla support gizmos.
if (m_common_gizmos_data->update_from_backend(m_parent, model_object)) { if (wxGetApp().preset_bundle->printers.get_edited_preset().printer_technology() == ptSLA) {
// FIXME: this is a hack to make that the clipping plane is if (m_common_gizmos_data->update_from_backend(m_parent, model_object)) {
// updated when the update set its position to zero. The clipping // FIXME: this is a hack to make that the clipping plane is
// plane itself should be common, including the update_function. // updated when the update set its position to zero. The clipping
// Then update_from_backend could do it itself. // plane itself should be common, including the update_function.
gizmo_supports->update_clipping_plane(); // Then update_from_backend could do it itself.
gizmo_hollow->update_clipping_plane(); gizmo_supports->update_clipping_plane();
gizmo_hollow->update_clipping_plane();
}
} }
gizmo_supports->set_sla_support_data(model_object, m_parent.get_selection()); gizmo_supports->set_sla_support_data(model_object, m_parent.get_selection());