mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Added check to see if requested layer is in the list.
contributes to #193
This commit is contained in:
parent
752a4b26fa
commit
a85347134e
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ class LayerData(MeshData):
|
|||
self._layers[layer].polygons.append(p)
|
||||
|
||||
def getLayer(self, layer):
|
||||
return self._layers[layer]
|
||||
if layer in self._layers:
|
||||
return self._layers[layer]
|
||||
|
||||
def getLayers(self):
|
||||
return self._layers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue