mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Fix crash on layer polygon
This commit is contained in:
parent
8f2dc5c6e0
commit
0fcbcf6a5f
1 changed files with 2 additions and 2 deletions
|
@ -42,11 +42,11 @@ class LayerPolygon:
|
|||
|
||||
self._extruder = extruder
|
||||
self._types = line_types
|
||||
unknown_types = np.where(self_types >= self_number_of_types)
|
||||
unknown_types = numpy.where(self._types >= self.__number_of_types)
|
||||
if unknown_types:
|
||||
# Got faulty line data from the engine.
|
||||
for idx in unknown_types:
|
||||
Logger.warn(f"Found an unknown line type at: {idx}")
|
||||
Logger.warning(f"Found an unknown line type at: {idx}")
|
||||
self._types[idx] = self.NoneType
|
||||
self._data = data
|
||||
self._line_widths = line_widths
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue