Fix of "spiral vase printable for a single region object only" check.
This commit is contained in:
parent
7c0c5705df
commit
ded2019765
1 changed files with 6 additions and 1 deletions
|
@ -1144,7 +1144,12 @@ std::string Print::validate() const
|
||||||
// #4043
|
// #4043
|
||||||
if (total_copies_count > 1 && ! m_config.complete_objects.value)
|
if (total_copies_count > 1 && ! m_config.complete_objects.value)
|
||||||
return L("The Spiral Vase option can only be used when printing a single object.");
|
return L("The Spiral Vase option can only be used when printing a single object.");
|
||||||
if (m_regions.size() > 1)
|
assert(m_objects.size() == 1);
|
||||||
|
size_t num_regions = 0;
|
||||||
|
for (const std::vector<std::pair<t_layer_height_range, int>> &volumes_per_region : m_objects.front()->region_volumes)
|
||||||
|
if (! volumes_per_region.empty())
|
||||||
|
++ num_regions;
|
||||||
|
if (num_regions > 1)
|
||||||
return L("The Spiral Vase option can only be used when printing single material objects.");
|
return L("The Spiral Vase option can only be used when printing single material objects.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue