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
This commit is contained in:
zhou.xu 2023-06-19 14:52:33 +08:00 committed by Lane.Wei
parent 0fa98a9878
commit 2093404af3
1 changed files with 1 additions and 1 deletions

View File

@ -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<Matrix3f>(volume.first->world_matrix().matrix().block(0, 0, 3, 3).inverse().transpose().cast<float>()));
shader->set_uniform("slope.normal_z", normal_z);