diff options
author | bubnikv <bubnikv@gmail.com> | 2017-02-07 20:17:12 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-02-07 20:17:12 +0300 |
commit | 43ac693900ff7f6ff46a93f19b18b1fdb8a7b19f (patch) | |
tree | f3371588d7a64bc6c7ca7063342f621e6c4256ba /xs/src/libslic3r/PrintObject.cpp | |
parent | aceb87d18868dd7c207e4a97ff451762086d91d6 (diff) |
Added a tooltip overlay for the variable layer height edit tool.
Short methods of PrintState made inline.
Added layer height profile to a Model class.
Diffstat (limited to 'xs/src/libslic3r/PrintObject.cpp')
-rw-r--r-- | xs/src/libslic3r/PrintObject.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xs/src/libslic3r/PrintObject.cpp b/xs/src/libslic3r/PrintObject.cpp index 94001cb38..8091db973 100644 --- a/xs/src/libslic3r/PrintObject.cpp +++ b/xs/src/libslic3r/PrintObject.cpp @@ -49,6 +49,7 @@ PrintObject::PrintObject(Print* print, ModelObject* model_object, const Bounding this->reload_model_instances(); this->layer_height_ranges = model_object->layer_height_ranges; + this->layer_height_profile = model_object->layer_height_profile; } bool @@ -949,8 +950,9 @@ SlicingParameters PrintObject::slicing_parameters() const unscale(this->size.z), this->print()->object_extruders()); } -void PrintObject::update_layer_height_profile() +bool PrintObject::update_layer_height_profile() { + bool updated = false; if (this->layer_height_profile.empty()) { if (0) // if (this->layer_height_profile.empty()) @@ -958,7 +960,9 @@ void PrintObject::update_layer_height_profile() this->model_object()->volumes); else this->layer_height_profile = layer_height_profile_from_ranges(this->slicing_parameters(), this->layer_height_ranges); + updated = true; } + return updated; } // 1) Decides Z positions of the layers, |