Fix: ../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:411:21: warning: comparison of integer expressions of different signedness: 'std::vector<Slic3r::ModelObject*>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
This commit is contained in:
parent
a2d2dec107
commit
07a97f41d3
@ -424,7 +424,7 @@ ModelVolume *GLGizmoSimplify::get_selected_volume(int *object_idx_ptr) const
|
|||||||
if (object_idx_ptr != nullptr) *object_idx_ptr = object_idx;
|
if (object_idx_ptr != nullptr) *object_idx_ptr = object_idx;
|
||||||
if (object_idx < 0) return nullptr;
|
if (object_idx < 0) return nullptr;
|
||||||
ModelObjectPtrs &objs = wxGetApp().plater()->model().objects;
|
ModelObjectPtrs &objs = wxGetApp().plater()->model().objects;
|
||||||
if (objs.size() <= object_idx) return nullptr;
|
if (static_cast<int>(objs.size()) <= object_idx) return nullptr;
|
||||||
ModelObject *obj = objs[object_idx];
|
ModelObject *obj = objs[object_idx];
|
||||||
if (obj->volumes.empty()) return nullptr;
|
if (obj->volumes.empty()) return nullptr;
|
||||||
return obj->volumes.front();
|
return obj->volumes.front();
|
||||||
|
Loading…
Reference in New Issue
Block a user