Fix for 34703 Mix node (Hue, Saturation) update and rendering error
[blender.git] / source / blender / compositor / operations / COM_MixSaturationOperation.cpp
index 401ad8d42476475c8971b77f361d504f5b1e23aa..69207d7fbaab30bfaf82f3e7b09017af79a82f9e 100644 (file)
@@ -52,7 +52,10 @@ void MixSaturationOperation::executePixel(float output[4], float x, float y, Pix
                float colH, colS, colV;
                rgb_to_hsv(inputColor2[0], inputColor2[1], inputColor2[2], &colH, &colS, &colV);
                hsv_to_rgb(rH, (valuem * rS + value * colS), rV, &output[0], &output[1], &output[2]);
+       } else {
+               copy_v3_v3(output, inputColor1);
        }
+
        output[3] = inputColor1[3];
 
        clampIfNeeded(output);