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:
authorAlessandro Ranellucci <aar@cpan.org>2015-07-01 22:47:17 +0300
committerAlessandro Ranellucci <aar@cpan.org>2015-07-01 22:47:17 +0300
commit801f629fdc973f7f60dc5e4c2135940f89c3b959 (patch)
tree2214cdcf0f193f73c820b520a8b380d717900c35 /xs/src/libslic3r/GCode.cpp
parentab858f320dd0d6a3dc535d4fa20ee4f31b350837 (diff)
Ported Slic3r::GCode storage to XS
Diffstat (limited to 'xs/src/libslic3r/GCode.cpp')
-rw-r--r--xs/src/libslic3r/GCode.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/xs/src/libslic3r/GCode.cpp b/xs/src/libslic3r/GCode.cpp
index 313af8a2e..506e11982 100644
--- a/xs/src/libslic3r/GCode.cpp
+++ b/xs/src/libslic3r/GCode.cpp
@@ -97,4 +97,15 @@ Wipe::reset_path()
REGISTER_CLASS(Wipe, "GCode::Wipe");
#endif
+GCode::GCode()
+ : enable_loop_clipping(true), enable_cooling_markers(false), layer_count(0),
+ layer_index(-1), first_layer(false), elapsed_time(0), volumetric_speed(0),
+ last_pos_defined(false)
+{
+}
+
+#ifdef SLIC3RXS
+REGISTER_CLASS(GCode, "GCode");
+#endif
+
}