From 2093404af330445fe9f77c75a7e266a702924c4c Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Mon, 19 Jun 2023 14:52:33 +0800 Subject: [PATCH] FIX: directly view overhang through the menu Referring to Cura's logic, open "show overhang" menu to directly view the overhang effect without the need to turn on the support function Change-Id: I7839a7559b05a12fc33e0919bc8a6b4948fc89a7 --- src/slic3r/GUI/3DScene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/3DScene.cpp b/src/slic3r/GUI/3DScene.cpp index 0a906c4ec..4ac743b09 100644 --- a/src/slic3r/GUI/3DScene.cpp +++ b/src/slic3r/GUI/3DScene.cpp @@ -1343,7 +1343,7 @@ void GLVolumeCollection::render( float normal_z = -::cos(Geometry::deg2rad((float) support_threshold_angle)); shader->set_uniform("volume_world_matrix", volume.first->world_matrix()); - shader->set_uniform("slope.actived", enable_support && m_slope.isGlobalActive && !volume.first->is_modifier && !volume.first->is_wipe_tower); + shader->set_uniform("slope.actived", m_slope.isGlobalActive && !volume.first->is_modifier && !volume.first->is_wipe_tower); shader->set_uniform("slope.volume_world_normal_matrix", static_cast(volume.first->world_matrix().matrix().block(0, 0, 3, 3).inverse().transpose().cast())); shader->set_uniform("slope.normal_z", normal_z);