mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-17 06:35:57 +08:00
Gizmo measure - Render hovered plane while in point selection mode
This commit is contained in:
parent
a0243affeb
commit
7c63e94515
@ -857,15 +857,12 @@ void GLGizmoMeasure::on_render()
|
|||||||
}
|
}
|
||||||
case Measure::SurfaceFeatureType::Plane:
|
case Measure::SurfaceFeatureType::Plane:
|
||||||
{
|
{
|
||||||
// no need to render the plane in case it is rendered with the same color as the volume in the 3D scene
|
const auto& [idx, normal, pt] = feature.get_plane();
|
||||||
if (colors.front() != m_parent.get_selection().get_first_volume()->render_color) {
|
assert(idx < m_plane_models_cache.size());
|
||||||
const auto& [idx, normal, pt] = feature.get_plane();
|
set_matrix_uniforms(m_volume_matrix);
|
||||||
assert(idx < m_plane_models_cache.size());
|
set_emission_uniform(colors.front(), hover);
|
||||||
set_matrix_uniforms(m_volume_matrix);
|
m_plane_models_cache[idx].set_color(colors.front());
|
||||||
set_emission_uniform(colors.front(), hover);
|
m_plane_models_cache[idx].render();
|
||||||
m_plane_models_cache[idx].set_color(colors.front());
|
|
||||||
m_plane_models_cache[idx].render();
|
|
||||||
}
|
|
||||||
if (update_raycasters_transform) {
|
if (update_raycasters_transform) {
|
||||||
auto it = m_raycasters.find(PLANE_ID);
|
auto it = m_raycasters.find(PLANE_ID);
|
||||||
if (it != m_raycasters.end() && it->second != nullptr)
|
if (it != m_raycasters.end() && it->second != nullptr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user