Skip to content

Commit

Permalink
Preserve gap indicator color when fill check is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvanzijl committed Mar 11, 2020
1 parent ffb8992 commit 53ad924
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions toonz/sources/toonzlib/stagevisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,13 @@ static void drawAutocloses(TVectorImage *vi, TVectorRenderData &rd) {

rd.m_palette = plt;
buildAutocloseImage(vaux, vi, startPoints, endPoints);
// temporarily disable fill check, to preserve the gap indicator color
bool tCheckEnabledOriginal = rd.m_tcheckEnabled;
rd.m_tcheckEnabled = false;
// draw
tglDraw(rd, vaux);
// restore original value
rd.m_tcheckEnabled = tCheckEnabledOriginal;
delete vaux;
}

Expand Down

0 comments on commit 53ad924

Please sign in to comment.