mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-05 19:27:57 -05:00
Update of ModelVolume::m_is_splittable moved inside ModelVolume itself
This commit is contained in:
1 parent
dec1c6ecfb
commit
77964de9f2
3 files changed
+12
-9
No files matched your search
@@ -1456,6 +1456,15 @@ int ModelVolume::extruder_id() const
|
||||
return extruder_id;
|
||||
}
|
||||
|
||||
bool ModelVolume::is_splittable() const
|
||||
{
|
||||
// the call mesh.has_multiple_patches() is expensive, so cache the value to calculate it only once
|
||||
if (m_is_splittable == -1)
|
||||
m_is_splittable = (int)mesh.has_multiple_patches();
|
||||
|
||||
return m_is_splittable == 1;
|
||||
}
|
||||
|
||||
void ModelVolume::center_geometry()
|
||||
{
|
||||
#if ENABLE_VOLUMES_CENTERING_FIXES
|
||||
|
||||
Reference in new issue
Block a user