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:
authorenricoturri1966 <enricoturri@seznam.cz>2021-09-15 11:52:16 +0300
committerenricoturri1966 <enricoturri@seznam.cz>2021-09-15 11:52:16 +0300
commit2e9b07202a21c8b53337535a130421846418e5a1 (patch)
tree454fd7c79c305befa2dcf640ceba216bbfb4c3cd /src/slic3r
parentb22b7c2bf41c58b35d686a429baf771686c5f2d4 (diff)
Fixed build when tech ENABLE_SEAMS_USING_BATCHED_MODELS is disabled
Diffstat (limited to 'src/slic3r')
-rw-r--r--src/slic3r/GUI/GCodeViewer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp
index 98d00a695..9baee7eba 100644
--- a/src/slic3r/GUI/GCodeViewer.cpp
+++ b/src/slic3r/GUI/GCodeViewer.cpp
@@ -3044,7 +3044,11 @@ void GCodeViewer::render_legend(float& legend_height)
bool imperial_units = wxGetApp().app_config->get("use_inches") == "1";
+#if ENABLE_SEAMS_USING_BATCHED_MODELS
auto append_item = [icon_size, percent_bar_size, &imgui, imperial_units](EItemType type, const Color& color, const std::string& label,
+#else
+ auto append_item = [this, icon_size, percent_bar_size, &imgui, imperial_units](EItemType type, const Color& color, const std::string& label,
+#endif // ENABLE_SEAMS_USING_BATCHED_MODELS
bool visible = true, const std::string& time = "", float percent = 0.0f, float max_percent = 0.0f, const std::array<float, 4>& offsets = { 0.0f, 0.0f, 0.0f, 0.0f },
double used_filament_m = 0.0, double used_filament_g = 0.0,
std::function<void()> callback = nullptr) {