From 5678b98feb0a7e7754cd85a6aeda4f90210ebccf Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Mon, 23 Sep 2024 17:41:36 +0800 Subject: [PATCH] FIX:layer height rander is only enable in CanvasView3D jira: STUDIO-8195 Change-Id: I60197f8b16845aa228548fcb357c75c7a59cd22d --- src/slic3r/GUI/Selection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Selection.cpp b/src/slic3r/GUI/Selection.cpp index 44ad0d6d5..008d97c9a 100644 --- a/src/slic3r/GUI/Selection.cpp +++ b/src/slic3r/GUI/Selection.cpp @@ -2783,7 +2783,9 @@ void Selection::render_sidebar_scale_hints(const std::string& sidebar_field, boo void Selection::render_sidebar_layers_hints(const std::string& sidebar_field) const { static const double Margin = 10.0; - + if (wxGetApp().plater()->canvas3D()->get_canvas_type() != GLCanvas3D::ECanvasType::CanvasView3D) { + return; + } std::string field = sidebar_field; // extract max_z