mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 21:28:59 +08: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
@ -613,6 +613,7 @@ std::string Print::validate() const
|
||||
object->update_layer_height_profile();
|
||||
object->layer_height_profile_valid = was_layer_height_profile_valid;
|
||||
|
||||
if ( this->config.variable_layer_height ) {
|
||||
PrintObject* first_object = this->objects.front();
|
||||
int i = 0;
|
||||
while ( i < first_object->layer_height_profile.size() && i < object->layer_height_profile.size() ) {
|
||||
@ -620,6 +621,7 @@ std::string Print::validate() const
|
||||
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)
|
||||
if (object->layer_height_profile[i-1] > slicing_params.object_print_z_min + EPSILON &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user