mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 16:22:00 +08:00
Bugfix: refer to getBool() instead of getting a reference to the object itself for config options.
Fixes #4043
This commit is contained in:
parent
837be65c6c
commit
aa20fb65e0
@ -676,7 +676,7 @@ Print::validate() const
|
|||||||
if (this->config.spiral_vase) {
|
if (this->config.spiral_vase) {
|
||||||
size_t total_copies_count = 0;
|
size_t total_copies_count = 0;
|
||||||
FOREACH_OBJECT(this, i_object) total_copies_count += (*i_object)->copies().size();
|
FOREACH_OBJECT(this, i_object) total_copies_count += (*i_object)->copies().size();
|
||||||
if (total_copies_count > 1 && !this->config.complete_objects)
|
if (total_copies_count > 1 && !this->config.complete_objects.getBool())
|
||||||
return "The Spiral Vase option can only be used when printing a single object.";
|
return "The Spiral Vase option can only be used when printing a single object.";
|
||||||
if (this->regions.size() > 1)
|
if (this->regions.size() > 1)
|
||||||
return "The Spiral Vase option can only be used when printing single material objects.";
|
return "The Spiral Vase option can only be used when printing single material objects.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user