diff options
author | bubnikv <bubnikv@gmail.com> | 2018-07-16 18:07:49 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-07-16 18:07:49 +0300 |
commit | 6dc1bf5c08b7935dfbc55d35dea31148d09732f8 (patch) | |
tree | 862e4d4149e6cd7fceb03208c3f3bcbfa1625301 /xs/src/libslic3r/PrintObject.cpp | |
parent | 0bbd1dbc4f80ee4909f84d91931c13d757ba0af7 (diff) | |
parent | d99b484ac6e67f00666530a1d7b78e7506e2ce6c (diff) |
Merge branch 'master' into stable
Diffstat (limited to 'xs/src/libslic3r/PrintObject.cpp')
-rw-r--r-- | xs/src/libslic3r/PrintObject.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xs/src/libslic3r/PrintObject.cpp b/xs/src/libslic3r/PrintObject.cpp index b0341db16..ba0876a85 100644 --- a/xs/src/libslic3r/PrintObject.cpp +++ b/xs/src/libslic3r/PrintObject.cpp @@ -4,6 +4,7 @@ #include "Geometry.hpp" #include "SupportMaterial.hpp" #include "Surface.hpp" +#include "Slicing.hpp" #include <utility> #include <boost/log/trivial.hpp> @@ -1961,4 +1962,12 @@ void PrintObject::reset_layer_height_profile() this->model_object()->layer_height_profile_valid = false; } +void PrintObject::adjust_layer_height_profile(coordf_t z, coordf_t layer_thickness_delta, coordf_t band_width, int action) +{ + update_layer_height_profile(_model_object->layer_height_profile); + Slic3r::adjust_layer_height_profile(slicing_parameters(), _model_object->layer_height_profile, z, layer_thickness_delta, band_width, LayerHeightEditActionType(action)); + _model_object->layer_height_profile_valid = true; + layer_height_profile_valid = false; +} + } // namespace Slic3r |