Fix:
../src/slic3r/GUI/GLModel.cpp:180:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Slic3r::GUI::GLModel::RenderData>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
This commit is contained in:
parent
13072f9cd2
commit
4a31811410
2 changed files with 2 additions and 2 deletions
src/slic3r/GUI
|
@ -175,7 +175,7 @@ void GLModel::set_color(int entity_id, const std::array<float, 4>& color)
|
|||
}
|
||||
}
|
||||
|
||||
const std::array<float, 4> GLModel::get_color(int entity_id) const
|
||||
const std::array<float, 4> GLModel::get_color(size_t entity_id) const
|
||||
{
|
||||
if (entity_id < 0 || entity_id >= m_render_data.size()) return {};
|
||||
return m_render_data[entity_id].color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue