Fix: Cycles silently ignores unknown --cycles--device type

Pull Request: https://projects.blender.org/blender/blender/pulls/134354
This commit is contained in:
Brecht Van Lommel
2025-02-11 20:42:21 +01:00
committed by Brecht Van Lommel
parent 9ad19396f5
commit 529ce46744
2 changed files with 3 additions and 2 deletions

View File

@@ -981,7 +981,7 @@ static PyObject *set_device_override_func(PyObject * /*self*/, PyObject *arg)
BlenderSession::device_override = DEVICE_MASK_ONEAPI;
}
else {
printf("\nError: %s is not a valid Cycles device.\n", override.c_str());
fprintf(stderr, "\nError: %s is not a valid Cycles device.\n", override.c_str());
Py_RETURN_FALSE;
}