../src/slic3r/GUI/GLSelectionRectangle.cpp:48:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Eigen::Matrix<double, 3, 1, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
This commit is contained in:
Filip Sykala 2022-04-05 17:16:21 +02:00
parent b7f662c311
commit 68c34210d2

View File

@ -45,7 +45,8 @@ namespace GUI {
// Iterate over all points and determine whether they're in the rectangle.
const Camera &camera = wxGetApp().plater()->get_camera();
Points points_2d = CameraUtils::project(camera, points);
for (int i = 0; i<points.size(); ++i)
unsigned int size = static_cast<unsigned int>(points.size());
for (unsigned int i = 0; i< size; ++i)
if (rectangle.contains(points_2d[i]))
out.push_back(i);