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
@ -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;
|
||||
|
@ -77,7 +77,7 @@ namespace GUI {
|
||||
|
||||
// if entity_id == -1 set the color of all entities
|
||||
void set_color(int entity_id, const std::array<float, 4>& color);
|
||||
const std::array<float, 4> get_color(int entity_id=0) const;
|
||||
const std::array<float, 4> get_color(size_t entity_id = 0U) const;
|
||||
|
||||
void reset();
|
||||
void render() const;
|
||||
|
Loading…
Reference in New Issue
Block a user