diff options
author | bubnikv <bubnikv@gmail.com> | 2017-03-07 19:43:43 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-03-07 19:43:43 +0300 |
commit | 65c024f7cff918b231be2abf10c9c4544d6d8836 (patch) | |
tree | 8ab79f67d3df2832d2228bc4d8a361eff090adaf /xs/src/libslic3r/Layer.hpp | |
parent | 109013bed73997fff52794660292db03b8188d64 (diff) |
Parallelize PrintObject::process_external_surfaces()
Diffstat (limited to 'xs/src/libslic3r/Layer.hpp')
-rw-r--r-- | xs/src/libslic3r/Layer.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xs/src/libslic3r/Layer.hpp b/xs/src/libslic3r/Layer.hpp index 02cb19655..6339434c7 100644 --- a/xs/src/libslic3r/Layer.hpp +++ b/xs/src/libslic3r/Layer.hpp @@ -22,7 +22,8 @@ class LayerRegion friend class Layer; public: - Layer* layer(); + Layer* layer() { return this->_layer; } + const Layer* layer() const { return this->_layer; } PrintRegion* region() { return this->_region; } const PrintRegion* region() const { return this->_region; } @@ -76,8 +77,8 @@ class LayerRegion Layer *_layer; PrintRegion *_region; - LayerRegion(Layer *layer, PrintRegion *region); - ~LayerRegion(); + LayerRegion(Layer *layer, PrintRegion *region) : _layer(layer), _region(region) {} + ~LayerRegion() {} }; |