mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-14 21:51:48 +08:00
Fix
../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:
parent
b7f662c311
commit
68c34210d2
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user