Fixed a variable layer height profile update issue.

https://github.com/prusa3d/Slic3r/issues/358
This commit is contained in:
bubnikv 2017-06-15 20:15:53 +02:00
parent aa54c3402b
commit cb43f19a90
2 changed files with 7 additions and 6 deletions

View file

@ -1468,6 +1468,7 @@ void PrintObject::reset_layer_height_profile()
{
// Reset the layer_heigth_profile.
this->layer_height_profile.clear();
this->layer_height_profile_valid = false;
// Reset the source layer_height_profile if it exists at the ModelObject.
this->model_object()->layer_height_profile.clear();
this->model_object()->layer_height_profile_valid = false;