mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 21:59:37 +08:00
Return early from _checkStackForErrors() if top container is empty.
This commit is contained in:
parent
ad5fae5b66
commit
f3f9a2393f
@ -106,6 +106,10 @@ class StartSliceJob(Job):
|
|||||||
if stack is None:
|
if stack is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# if there are no per-object settings we don't need to check the other settings here
|
||||||
|
if stack.getTop() == None or len(stack.getTop().getAllKeys()) == 0:
|
||||||
|
return False
|
||||||
|
|
||||||
for key in stack.getAllKeys():
|
for key in stack.getAllKeys():
|
||||||
validation_state = stack.getProperty(key, "validationState")
|
validation_state = stack.getProperty(key, "validationState")
|
||||||
if validation_state in (ValidatorState.Exception, ValidatorState.MaximumError, ValidatorState.MinimumError, ValidatorState.Invalid):
|
if validation_state in (ValidatorState.Exception, ValidatorState.MaximumError, ValidatorState.MinimumError, ValidatorState.Invalid):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user