Bugfix: refer to getBool() instead of getting a reference to the object itself for config options.

Fixes #4043
This commit is contained in:
Joseph Lenox 2017-06-22 16:17:20 -05:00
parent 837be65c6c
commit aa20fb65e0

View File

@ -676,7 +676,7 @@ Print::validate() const
if (this->config.spiral_vase) {
size_t total_copies_count = 0;
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.";
if (this->regions.size() > 1)
return "The Spiral Vase option can only be used when printing single material objects.";