Skip to content

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

C

show autopaint style color in transparency check

shun-iwasawa9633086ea98a
diff --git a/toonz/sources/common/trop/quickput.cpp b/toonz/sources/common/trop/quickput.cpp
index a00e04e36..d9cf55baa 100644
--- a/toonz/sources/common/trop/quickput.cpp
+++ b/toonz/sources/common/trop/quickput.cpp
@@ -4135,7 +4135,9 @@ void doQuickPutCmapped(const TRaster32P &dn, const TRasterCM32P &up,
if (s.m_transparencyCheck && !s.m_isOnionSkin) {
for (int i = 0; i < palette->getStyleCount(); i++) {
- if (i == s.m_gapCheckIndex) {
+ // if the style's autopaint flag is ON, show its original color
+ // so that users can easily find lines left unpainted.
+ if (i == s.m_gapCheckIndex || palette->getStyle(i)->getFlags() != 0) {
paints[i] = inks[i] = applyColorScaleCMapped(
palette->getStyle(i)->getAverageColor(), s.m_globalColorScale);
} else {