Merge branch 'mb-per-object-setting-check-speedup' of https://github.com/smartavionics/Cura into smartavionics-mb-per-object-setting-check-speedup

This commit is contained in:
Ghostkeeper 2019-10-18 11:27:29 +02:00
commit d0c760d48b
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -106,6 +106,10 @@ class StartSliceJob(Job):
if stack is None:
return False
# if there are no per-object settings we don't need to check the other settings here
if stack.getTop() is None or not stack.getTop().getAllKeys():
return False
for key in stack.getAllKeys():
validation_state = stack.getProperty(key, "validationState")
if validation_state in (ValidatorState.Exception, ValidatorState.MaximumError, ValidatorState.MinimumError, ValidatorState.Invalid):