mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Fix LayerPolygon
This commit is contained in:
parent
a8f0e330ad
commit
094d176c45
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ class LayerPolygon:
|
||||||
|
|
||||||
self._extruder = extruder
|
self._extruder = extruder
|
||||||
self._types = line_types
|
self._types = line_types
|
||||||
unknown_types = numpy.where(self._types >= self.__number_of_types, self._types)
|
unknown_types = numpy.where(self._types >= self.__number_of_types, self._types, None)
|
||||||
if unknown_types:
|
if unknown_types.any():
|
||||||
# Got faulty line data from the engine.
|
# Got faulty line data from the engine.
|
||||||
for idx in unknown_types:
|
for idx in unknown_types:
|
||||||
Logger.warning(f"Found an unknown line type at: {idx}")
|
Logger.warning(f"Found an unknown line type at: {idx}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue