Gizmo measure - Fixed feature color while point selection mode is active

This commit is contained in:
enricoturri1966 2022-11-10 15:10:16 +01:00
parent a117a13b91
commit 67b4dd9b2a

View File

@ -865,9 +865,9 @@ void GLGizmoMeasure::on_render()
if (m_curr_feature.has_value()) { if (m_curr_feature.has_value()) {
std::vector<ColorRGBA> colors; std::vector<ColorRGBA> colors;
if (m_selected_features.first.feature.has_value() && *m_curr_feature == *m_selected_features.first.feature) if (m_selected_features.first.feature.has_value() && *m_curr_feature == *m_selected_features.first.feature)
colors.emplace_back(SELECTED_1ST_COLOR); colors.emplace_back(hovering_color());
else if (m_selected_features.second.feature.has_value() && *m_curr_feature == *m_selected_features.second.feature) else if (m_selected_features.second.feature.has_value() && *m_curr_feature == *m_selected_features.second.feature)
colors.emplace_back(SELECTED_2ND_COLOR); colors.emplace_back(hovering_color());
else { else {
switch (m_curr_feature->get_type()) switch (m_curr_feature->get_type())
{ {