mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-30 17:05:35 -05:00
Use number_of_parts for is_splittable
It's there, why not use it
This commit is contained in:
1 parent
4a9e05194c
commit
cd3cec3e45
4 files changed
+1
-25
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user