Update of ModelVolume::m_is_splittable moved inside ModelVolume itself
This commit is contained in:
parent
dec1c6ecfb
commit
77964de9f2
3 changed files with 12 additions and 9 deletions
src/libslic3r
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue