mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 18:45:55 +08:00
Fix for SPE-1734 : CUT - scaled/rotated modifiers loose their transformations when some cut part is selected/deselected
This commit is contained in:
parent
55057426f2
commit
7ad9a993a8
@ -1488,8 +1488,7 @@ void GLGizmoCut3D::PartSelection::render(const Vec3d* normal, GLModel& sphere_mo
|
|||||||
if (!m_parts[id].is_modifier && normal && ((is_looking_forward && m_parts[id].selected) ||
|
if (!m_parts[id].is_modifier && normal && ((is_looking_forward && m_parts[id].selected) ||
|
||||||
(!is_looking_forward && !m_parts[id].selected) ) )
|
(!is_looking_forward && !m_parts[id].selected) ) )
|
||||||
continue;
|
continue;
|
||||||
const Vec3d volume_offset = model_object()->volumes[id]->get_offset();
|
shader->set_uniform("view_model_matrix", view_inst_matrix * model_object()->volumes[id]->get_matrix());
|
||||||
shader->set_uniform("view_model_matrix", view_inst_matrix * translation_transform(volume_offset));
|
|
||||||
if (m_parts[id].is_modifier) {
|
if (m_parts[id].is_modifier) {
|
||||||
glsafe(::glEnable(GL_BLEND));
|
glsafe(::glEnable(GL_BLEND));
|
||||||
glsafe(::glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA));
|
glsafe(::glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user