Use number_of_parts for is_splittable

It's there, why not use it
This commit is contained in:
Sijmen Schoon
2019-04-01 12:09:44 +02:00
committed by bubnikv
parent 4a9e05194c
commit cd3cec3e45
4 changed files with 1 additions and 25 deletions
+1 -5
View File
@@ -1467,11 +1467,7 @@ int ModelVolume::extruder_id() const
bool ModelVolume::is_splittable() const
{
// the call mesh.is_splittable() is expensive, so cache the value to calculate it only once
if (m_is_splittable == -1)
m_is_splittable = (int)mesh.is_splittable();
return m_is_splittable == 1;
return mesh.stl.stats.number_of_parts > 1;
}
void ModelVolume::center_geometry()