diff options
author | bubnikv <bubnikv@gmail.com> | 2017-02-09 16:56:13 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-02-09 16:56:13 +0300 |
commit | 88e34ff5de846302f0a726478b4a164322a33727 (patch) | |
tree | c55fb1b421cd5bf4aacd8391b212f9f57add010b /xs/src/libslic3r/Model.hpp | |
parent | 61c0ae4e9484cb6e3c60a804b1c08409d3e870f6 (diff) |
Store / retrieve layer height profile from the AMF file.
Reset the layer height profile when changing a print profile to an incompatible one.
Reset button on the layer height bar.
Fixed an update issue on zooming by a scroll wheel.
Fixed an issue when loading an AMF file: Object names are now retained.
Diffstat (limited to 'xs/src/libslic3r/Model.hpp')
-rw-r--r-- | xs/src/libslic3r/Model.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Model.hpp b/xs/src/libslic3r/Model.hpp index e6e98bc01..5e1e29cd5 100644 --- a/xs/src/libslic3r/Model.hpp +++ b/xs/src/libslic3r/Model.hpp @@ -117,6 +117,10 @@ public: // Profile of increasing z to a layer height, to be linearly interpolated when calculating the layers. // The pairs of <z, layer_height> are packed into a 1D array to simplify handling by the Perl XS. std::vector<coordf_t> layer_height_profile; + // layer_height_profile is initialized when the layer editing mode is entered. + // Only if the user really modified the layer height, layer_height_profile_valid is set + // and used subsequently by the PrintObject. + bool layer_height_profile_valid; /* This vector accumulates the total translation applied to the object by the center_around_origin() method. Callers might want to apply the same translation |