mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 01:55:56 +08:00
Fixed warnings
This commit is contained in:
parent
d437d1bebf
commit
2a944d4cde
@ -751,7 +751,7 @@ void GLGizmoMeasure::on_render()
|
|||||||
shader->set_uniform("view_normal_matrix", view_normal_matrix);
|
shader->set_uniform("view_normal_matrix", view_normal_matrix);
|
||||||
};
|
};
|
||||||
|
|
||||||
auto set_emission_uniform = [this, shader](const ColorRGBA& color, bool hover) {
|
auto set_emission_uniform = [shader](const ColorRGBA& color, bool hover) {
|
||||||
shader->set_uniform("emission_factor", (color == GLVolume::SELECTED_COLOR) ? 0.0f :
|
shader->set_uniform("emission_factor", (color == GLVolume::SELECTED_COLOR) ? 0.0f :
|
||||||
hover ? 0.5f : 0.25f);
|
hover ? 0.5f : 0.25f);
|
||||||
};
|
};
|
||||||
@ -870,7 +870,7 @@ void GLGizmoMeasure::on_render()
|
|||||||
SELECTED_1ST_COLOR : SELECTED_2ND_COLOR;
|
SELECTED_1ST_COLOR : SELECTED_2ND_COLOR;
|
||||||
};
|
};
|
||||||
|
|
||||||
auto hovering_color = [this, hover_selection_color, &selection]() {
|
auto hovering_color = [this, hover_selection_color]() {
|
||||||
return (m_mode == EMode::PointSelection) ? GLVolume::SELECTED_COLOR : hover_selection_color();
|
return (m_mode == EMode::PointSelection) ? GLVolume::SELECTED_COLOR : hover_selection_color();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user