From 04e193011c5c59f3c98da7b5f16856c086738b80 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Mon, 8 Oct 2018 09:08:42 +0200 Subject: [PATCH] Fixed crash when selecting object --- src/slic3r/GUI/GLCanvas3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index b147ce9891..7eccf3af72 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -4115,7 +4115,7 @@ void GLCanvas3D::_render_legend_texture() const void GLCanvas3D::_render_layer_editing_overlay() const { - if (m_print == nullptr) + if ((m_print == nullptr) || m_print->objects().empty()) return; GLVolume* volume = nullptr;