Browse Source

Do not slice if there is any setting with an error value

Fixes #7
Arjen Hiemstra 9 years ago
parent
commit
1471a6815f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      plugins/CuraEngineBackend/CuraEngineBackend.py

+ 3 - 0
plugins/CuraEngineBackend/CuraEngineBackend.py

@@ -110,6 +110,9 @@ class CuraEngineBackend(Backend):
         if not objects:
             return #No point in slicing an empty build plate
 
+        if kwargs.get("settings", self._settings).hasErrorValue():
+            return #No slicing if we have error values since those are by definition illegal values.
+
         self._slicing = True
         self.slicingStarted.emit()