Fix #117318: Empty Defocus output when max blur is less than 1

The Defocus node produces an empty output when the max blur is less than
1. This patch fixes that by passing the image through in that case,
since it is identity in this case.
This commit is contained in:
Omar Emara
2024-01-19 13:08:19 +02:00
parent 91f7216eb1
commit 20932608ea

View File

@@ -108,7 +108,7 @@ class DefocusOperation : public NodeOperation {
{
Result &input = get_input("Image");
Result &output = get_result("Image");
if (input.is_single_value()) {
if (input.is_single_value() || node_storage(bnode()).maxblur < 1.0f) {
input.pass_through(output);
return;
}