#7246 - Fixed rrror when resize object to bed limit

This commit is contained in:
enricoturri1966 2021-11-09 12:29:22 +01:00
parent 5c55bee923
commit ab6ceaa68c

View file

@ -40,7 +40,8 @@ ModelInstanceEPrintVolumeState printbed_collision_state(const Polygon& printbed_
break;
}
}
const bool contained_z = -1e10 < obj_min_z && obj_max_z < print_volume_height;
const bool contained_z = -1e10 < obj_min_z && obj_max_z <= print_volume_height;
return (contained_xy && contained_z) ? ModelInstancePVS_Inside : ModelInstancePVS_Partly_Outside;
}