Fixed wrong color of toolpaths in pre-gcode preview

This commit is contained in:
enricoturri1966 2021-11-16 14:52:07 +01:00
parent 1aaa4845c5
commit 8d046a577a

View file

@ -5095,7 +5095,7 @@ void GLCanvas3D::_render_objects(GLVolumeCollection::ERenderType type)
m_camera_clipping_plane = m_gizmos.get_clipping_plane();
if (m_picking_enabled) {
if (m_picking_enabled)
// Update the layer editing selection to the first object selected, update the current object maximum Z.
m_layers_editing.select_object(*m_model, this->is_layers_editing_enabled() ? m_selection.get_object_idx() : -1);
@ -5126,7 +5126,6 @@ void GLCanvas3D::_render_objects(GLVolumeCollection::ERenderType type)
m_requires_check_outside_state = false;
}
}
}
if (m_use_clipping_planes)
m_volumes.set_z_range(-m_clipping_planes[0].get_data()[3], m_clipping_planes[1].get_data()[3]);