Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2016-09-13 14:30:00 +0300
committerbubnikv <bubnikv@gmail.com>2016-09-13 14:30:00 +0300
commit620c6c7378c4799980f63794669548c104b9bcea (patch)
treefc7aea3342539018bb19d27abd1144956eb00b4d /xs/src/libslic3r/ExtrusionSimulator.cpp
parenta5b7f14dfa291039fd6971a356efd011fab84440 (diff)
Ported from the playground branch. Various documentation and optimization.
Diffstat (limited to 'xs/src/libslic3r/ExtrusionSimulator.cpp')
-rw-r--r--xs/src/libslic3r/ExtrusionSimulator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/xs/src/libslic3r/ExtrusionSimulator.cpp b/xs/src/libslic3r/ExtrusionSimulator.cpp
index 2dbef9a25..83422cdee 100644
--- a/xs/src/libslic3r/ExtrusionSimulator.cpp
+++ b/xs/src/libslic3r/ExtrusionSimulator.cpp
@@ -1,7 +1,7 @@
// Optimize the extrusion simulator to the bones.
-#pragma GCC optimize ("O3")
-#undef SLIC3R_DEBUG
-#define NDEBUG
+//#pragma GCC optimize ("O3")
+//#undef SLIC3R_DEBUG
+//#define NDEBUG
#include <cmath>
#include <cassert>
@@ -640,7 +640,7 @@ struct Cell
// Height of the covered part in excess to the expected layer height.
float excess_height;
- bool operator<(const Cell &c2) {
+ bool operator<(const Cell &c2) const {
return this->excess_height < c2.excess_height;
}
};