From 5cc76ea118a9f48062815bd2fc21924e44a590d2 Mon Sep 17 00:00:00 2001 From: Omar Emara Date: Mon, 29 Jan 2024 16:55:53 +0200 Subject: [PATCH] Fix: Mask node has an output even with no mask The Mask compositor node still has an output even when no mask is selected in the node. Fix this by outputing a single zero value in that case. --- source/blender/compositor/operations/COM_MaskOperation.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/compositor/operations/COM_MaskOperation.cc b/source/blender/compositor/operations/COM_MaskOperation.cc index 3d9d1b0eb77..9496f153490 100644 --- a/source/blender/compositor/operations/COM_MaskOperation.cc +++ b/source/blender/compositor/operations/COM_MaskOperation.cc @@ -84,7 +84,7 @@ void MaskOperation::deinit_execution() void MaskOperation::determine_canvas(const rcti &preferred_area, rcti &r_area) { - if (mask_width_ == 0 || mask_height_ == 0) { + if (!mask_ || mask_width_ == 0 || mask_height_ == 0) { r_area = COM_AREA_NONE; } else {