mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -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,6 +28,7 @@ class LayerData(MeshData):
|
||||||
self._layers[layer].polygons.append(p)
|
self._layers[layer].polygons.append(p)
|
||||||
|
|
||||||
def getLayer(self, layer):
|
def getLayer(self, layer):
|
||||||
|
if layer in self._layers:
|
||||||
return self._layers[layer]
|
return self._layers[layer]
|
||||||
|
|
||||||
def getLayers(self):
|
def getLayers(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue