From 094d176c4535f6e83720012615c0936d05b1735e Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 7 Sep 2022 15:32:51 +0200 Subject: [PATCH] Fix LayerPolygon --- cura/LayerPolygon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/LayerPolygon.py b/cura/LayerPolygon.py index 07f6660388..103703e594 100644 --- a/cura/LayerPolygon.py +++ b/cura/LayerPolygon.py @@ -42,8 +42,8 @@ class LayerPolygon: self._extruder = extruder self._types = line_types - unknown_types = numpy.where(self._types >= self.__number_of_types, self._types) - if unknown_types: + unknown_types = numpy.where(self._types >= self.__number_of_types, self._types, None) + if unknown_types.any(): # Got faulty line data from the engine. for idx in unknown_types: Logger.warning(f"Found an unknown line type at: {idx}")