Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

fix separate colors (#2449)

shun-iwasawaae407fc9465c
diff --git a/toonz/sources/toonz/separatecolorspopup.cpp b/toonz/sources/toonz/separatecolorspopup.cpp
index d8051e8a9..da8c13d06 100644
--- a/toonz/sources/toonz/separatecolorspopup.cpp
+++ b/toonz/sources/toonz/separatecolorspopup.cpp
@@ -1599,7 +1599,7 @@ void SeparateColorsPopup::doCompute(TRaster32P raster, TDimensionI& dim,
pix_c3->b = getChannelValue(subColor3.b, ratio_s3);
pix_c3->m = getChannelValue(TPixel32::maxChannelValue, ratio_s3);
} else {
- *pix_c2 = matteColor_s3;
+ *pix_c3 = matteColor_s3;
}
if (doMatte) matte_p++;