mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 03:25:53 +08:00
Fixed some more compiler warnings
This commit is contained in:
parent
90fd88bf12
commit
138a41c870
@ -68,7 +68,9 @@ private:
|
||||
template<bool IncludeBoundary = false, class BoundingBoxType, class It, class = IteratorOnly<It>>
|
||||
static void construct(BoundingBoxType &out, It from, It to)
|
||||
{
|
||||
if (from != to) {
|
||||
if (from == to) {
|
||||
out.defined = false;
|
||||
} else {
|
||||
auto it = from;
|
||||
out.min = it->template cast<typename PointType::Scalar>();
|
||||
out.max = out.min;
|
||||
|
@ -1611,7 +1611,7 @@ void PrintObject::discover_vertical_shells()
|
||||
to_polygons(m_layers[idx_layer + 1]->lslices) :
|
||||
Polygons{};
|
||||
object_volume = intersection(shrinked_bottom_slice, shrinked_upper_slice);
|
||||
internal_volume = closing(polygonsInternal, SCALED_EPSILON);
|
||||
internal_volume = closing(polygonsInternal, float(SCALED_EPSILON));
|
||||
}
|
||||
|
||||
// The regularization operation may cause scattered tiny drops on the smooth parts of the model, filter them out
|
||||
|
@ -3022,7 +3022,7 @@ void GLGizmoCut3D::toggle_model_objects_visibility()
|
||||
{
|
||||
bool has_active_volume = false;
|
||||
std::vector<std::shared_ptr<SceneRaycasterItem>>* raycasters = m_parent.get_raycasters_for_picking(SceneRaycaster::EType::Volume);
|
||||
for (const auto raycaster : *raycasters)
|
||||
for (const std::shared_ptr<SceneRaycasterItem> &raycaster : *raycasters)
|
||||
if (raycaster->is_active()) {
|
||||
has_active_volume = true;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user