diff options
author | YuSanka <yusanka@gmail.com> | 2020-01-23 17:07:31 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2020-01-23 18:11:21 +0300 |
commit | 5ff8ae955be3dfcae2387fe04386ee40ec868598 (patch) | |
tree | 495b376960bdf9dac2eac31275100ea44813ff38 /src/slic3r/GUI/GLCanvas3D.cpp | |
parent | 1ed313ab7983bed9a1911da153ce2e3e0b473d6f (diff) |
Implemented editing for extruder of existing ToolChangeCode tick
+ Code refactoring: DoubleSlider is extracted from wxExtensions
Diffstat (limited to 'src/slic3r/GUI/GLCanvas3D.cpp')
-rw-r--r-- | src/slic3r/GUI/GLCanvas3D.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 09d6eda2e..d847b297e 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -60,6 +60,7 @@ #include <float.h> #include <algorithm> #include <cmath> +#include "DoubleSlider.hpp" #if ENABLE_RENDER_STATISTICS #include <chrono> #endif // ENABLE_RENDER_STATISTICS @@ -910,7 +911,7 @@ void GLCanvas3D::LegendTexture::fill_color_print_legend_items( const GLCanvas3D { if (custom_code.gcode != ColorChangeCode) continue; - auto lower_b = std::lower_bound(print_zs.begin(), print_zs.end(), custom_code.print_z - DoubleSlider::epsilon()); + auto lower_b = std::lower_bound(print_zs.begin(), print_zs.end(), custom_code.print_z - Slic3r::DoubleSlider::epsilon()); if (lower_b == print_zs.end()) continue; |