Allowed to do drilling without hollowing

This commit is contained in:
Lukas Matena 2020-01-22 17:26:13 +01:00
parent 6b0af43665
commit 022cc0871a
2 changed files with 50 additions and 38 deletions

View file

@ -84,8 +84,7 @@ public:
// Get the mesh that is going to be printed with all the modifications
// like hollowing and drilled holes.
const TriangleMesh & get_mesh_to_print() const {
bool is_hollowing = m_config.hollowing_enable.getBool() && m_hollowing_data;
return is_hollowing ? m_hollowing_data->hollow_mesh_with_holes : transformed_mesh();
return m_hollowing_data ? m_hollowing_data->hollow_mesh_with_holes : transformed_mesh();
}
// This will return the transformed mesh which is cached