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.
This commit is contained in:
Omar Emara
2024-01-29 16:55:53 +02:00
parent 51c6dc06a0
commit 5cc76ea118

View File

@@ -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 {