Fix syntetic->synthetic
This commit is contained in:
parent
f6ea5ba237
commit
9caf9a829b
1 changed files with 4 additions and 4 deletions
|
@ -785,7 +785,7 @@ void Naa2TlvConverter::addBorderInks() // add syntethic inks: lines between two
|
||||||
(m_regions[c1].type & RegionInfo::Paint) != 0) {
|
(m_regions[c1].type & RegionInfo::Paint) != 0) {
|
||||||
// OLD: note: we consider only regions with a lower index, to avoid
|
// OLD: note: we consider only regions with a lower index, to avoid
|
||||||
// to create double border strokes
|
// to create double border strokes
|
||||||
// NEW: we put syntetic ink pixels in larger regions
|
// NEW: we put synthetic ink pixels in larger regions
|
||||||
// UPDATE 2017/5/12 : we put ink on darker style
|
// UPDATE 2017/5/12 : we put ink on darker style
|
||||||
if (colorsBrightness[m_regions[c1].colorIndex] >
|
if (colorsBrightness[m_regions[c1].colorIndex] >
|
||||||
colorsBrightness[m_regions[c].colorIndex]) {
|
colorsBrightness[m_regions[c].colorIndex]) {
|
||||||
|
@ -1039,10 +1039,10 @@ TToonzImageP Naa2TlvConverter::makeTlv(bool transparentSyntheticInks,
|
||||||
styleIds.append(styleId);
|
styleIds.append(styleId);
|
||||||
if (!usedStyleIds.contains(styleId)) usedStyleIds.append(styleId);
|
if (!usedStyleIds.contains(styleId)) usedStyleIds.append(styleId);
|
||||||
}
|
}
|
||||||
styleIds.append(0); // syntetic ink
|
styleIds.append(0); // synthetic ink
|
||||||
|
|
||||||
// int synteticInkStyleId = palette->getPage(0)->addStyle(TPixel32(0,0,0,0));
|
// int syntheticInkStyleId = palette->getPage(0)->addStyle(TPixel32(0,0,0,0));
|
||||||
// styleIds.append(synteticInkStyleId);
|
// styleIds.append(syntheticInkStyleId);
|
||||||
|
|
||||||
for (int y = 0; y < ly; y++) {
|
for (int y = 0; y < ly; y++) {
|
||||||
unsigned short *workScanLine = m_regionRas->pixels(y);
|
unsigned short *workScanLine = m_regionRas->pixels(y);
|
||||||
|
|
Loading…
Reference in a new issue