mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 11:17:51 -06:00
The layer height check for multiple objects is now only enabled when variable layer height is enabled
This commit is contained in:
parent
42baeee0ed
commit
719adfbaf3
1 changed files with 8 additions and 6 deletions
|
@ -613,12 +613,14 @@ std::string Print::validate() const
|
||||||
object->update_layer_height_profile();
|
object->update_layer_height_profile();
|
||||||
object->layer_height_profile_valid = was_layer_height_profile_valid;
|
object->layer_height_profile_valid = was_layer_height_profile_valid;
|
||||||
|
|
||||||
PrintObject* first_object = this->objects.front();
|
if ( this->config.variable_layer_height ) {
|
||||||
int i = 0;
|
PrintObject* first_object = this->objects.front();
|
||||||
while ( i < first_object->layer_height_profile.size() && i < object->layer_height_profile.size() ) {
|
int i = 0;
|
||||||
if (std::abs(first_object->layer_height_profile[i] - object->layer_height_profile[i]) > EPSILON )
|
while ( i < first_object->layer_height_profile.size() && i < object->layer_height_profile.size() ) {
|
||||||
return "The Wipe tower is only supported if all objects have the same layer height profile";
|
if (std::abs(first_object->layer_height_profile[i] - object->layer_height_profile[i]) > EPSILON )
|
||||||
++i;
|
return "The Wipe tower is only supported if all objects have the same layer height profile";
|
||||||
|
++i;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*for (size_t i = 5; i < object->layer_height_profile.size(); i += 2)
|
/*for (size_t i = 5; i < object->layer_height_profile.size(); i += 2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue