FIX: 0-sized path cause wrong detection of gcode_check_result

0-sized  extrusion path are now excluded from the heated bed range check to avoid false positive detection.

jira: none
Change-Id: Ia4bfff77880d107ce6b9542ef770050201ff0d90
(cherry picked from commit 00d9aedabed7e6b25767ddfe9871488f629c0dde)
This commit is contained in:
songwei.li 2025-08-07 18:06:56 +08:00 committed by Noisyfox
parent 390bc3fb27
commit 885a078747

View file

@ -1736,6 +1736,7 @@ bool GCodeProcessor::check_multi_extruder_gcode_valid(const int
Points iter_points;//temp points
iter_points.insert(iter_points.end(), iter->second.pos.begin(), iter->second.pos.end());// put object/wipetower extrude position in
Polygon path_poly(iter_points);
if (path_poly.empty()) continue;
BoundingBox bbox = path_poly.bounding_box();
if (plate_printable_poly.is_valid()){
if (!plate_printable_poly.bounding_box().contains(bbox)) {// out of the bed area