diff --git a/start_end.cfg b/start_end.cfg index 49f431d..8031702 100644 --- a/start_end.cfg +++ b/start_end.cfg @@ -445,8 +445,8 @@ gcode: {% set points = [MODEL_MIN, MODEL_MAX] %} {% endif %} {% if (printer.exclude_object|default({})).objects %} - {% set points = printer.exclude_object.objects|map(attribute='polygon')| - sum(start=points) %} + {% set points = printer.exclude_object.objects|selectattr('polygon')| + map(attribute='polygon')|sum(start=points) %} {% set points_len = points|length %} {% if points_len >= 2 %} {% set x_coords = (points|map(attribute=0)|sort|list)[0::points_len-1] %}