From 731e5a36b763a8d50569b2d5d364d0cd9fe26d6f Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Tue, 19 Mar 2019 10:54:54 +0100 Subject: [PATCH] Commit 4a8a1fac7b6ad690ed4f81eae9d31ae6e145a4c5 re-made as linux-only --- src/slic3r/GUI/GUI_Preview.cpp | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/slic3r/GUI/GUI_Preview.cpp b/src/slic3r/GUI/GUI_Preview.cpp index 9db490787..a2c2dbc39 100644 --- a/src/slic3r/GUI/GUI_Preview.cpp +++ b/src/slic3r/GUI/GUI_Preview.cpp @@ -366,12 +366,7 @@ void Preview::load_print(bool keep_z_range) void Preview::reload_print(bool keep_volumes) { - if (!IsShown()) - { - m_volumes_cleanup_required = !keep_volumes; - return; - } - +#ifndef __linux__ if (m_volumes_cleanup_required || !keep_volumes) { m_canvas->reset_volumes(); @@ -379,6 +374,23 @@ void Preview::reload_print(bool keep_volumes) m_loaded = false; m_volumes_cleanup_required = false; } +#endif // __linux__ + + if (!IsShown()) + { + m_volumes_cleanup_required = !keep_volumes; + return; + } + +#ifdef __linux__ + if (m_volumes_cleanup_required || !keep_volumes) + { + m_canvas->reset_volumes(); + m_canvas->reset_legend_texture(); + m_loaded = false; + m_volumes_cleanup_required = false; + } +#endif // __linux__ load_print(); }