Adds Engine not detected as ErrorType.
This commit is contained in:
committed by
Sheepit Renderfarm
parent
7d984f94a5
commit
4c3b5c0188
@@ -49,6 +49,7 @@ public class Error {
|
|||||||
OS_NOT_SUPPORTED(17),
|
OS_NOT_SUPPORTED(17),
|
||||||
CPU_NOT_SUPPORTED(18),
|
CPU_NOT_SUPPORTED(18),
|
||||||
GPU_NOT_SUPPORTED(19),
|
GPU_NOT_SUPPORTED(19),
|
||||||
|
ENGINE_NOT_AVAILABLE(27),
|
||||||
VALIDATION_FAILED(25),
|
VALIDATION_FAILED(25),
|
||||||
IMAGE_WRONG_DIMENSION(26),
|
IMAGE_WRONG_DIMENSION(26),
|
||||||
|
|
||||||
@@ -191,6 +192,8 @@ public class Error {
|
|||||||
return "Operating System not supported.";
|
return "Operating System not supported.";
|
||||||
case CPU_NOT_SUPPORTED:
|
case CPU_NOT_SUPPORTED:
|
||||||
return "CPU not supported.";
|
return "CPU not supported.";
|
||||||
|
case ENGINE_NOT_AVAILABLE:
|
||||||
|
return "Engine not available.";
|
||||||
case NO_SPACE_LEFT_ON_DEVICE:
|
case NO_SPACE_LEFT_ON_DEVICE:
|
||||||
return "No space left on hard disk";
|
return "No space left on hard disk";
|
||||||
case IMAGE_WRONG_DIMENSION:
|
case IMAGE_WRONG_DIMENSION:
|
||||||
|
|||||||
@@ -856,6 +856,12 @@ import lombok.Getter;
|
|||||||
// Saved: '/tmp/cache/8_0001.png'
|
// Saved: '/tmp/cache/8_0001.png'
|
||||||
return Error.Type.GPU_NOT_SUPPORTED;
|
return Error.Type.GPU_NOT_SUPPORTED;
|
||||||
}
|
}
|
||||||
|
else if (line.contains("Engine 'CYCLES' not available for scene") || line.contains("Engine 'BLENDER_EEVEE' not available for scene")) {
|
||||||
|
return Error.Type.ENGINE_NOT_AVAILABLE;
|
||||||
|
}
|
||||||
|
else if (line.contains("Warning: Cycles is not enabled!")) {
|
||||||
|
return Error.Type.ENGINE_NOT_AVAILABLE;
|
||||||
|
}
|
||||||
return Type.OK;
|
return Type.OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user