Skip to content

Commit

Permalink
Merge pull request #1242 from manongjohn/fix_raster_filldepth_slider
Browse files Browse the repository at this point in the history
Invert raster fill depth value calculation
  • Loading branch information
manongjohn committed Oct 16, 2023
2 parents 613ee00 + 6393071 commit 01f55cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toonz/sources/toonzlib/fill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ void fullColorFill(const TRaster32P &ras, const FillParameters &params,
TPointD m_firstPoint, m_clickPoint;

// convert fillDepth range from [0 - 15] to [0 - 255]
fillDepth = (fillDepth << 4) | fillDepth;
fillDepth = ((15 - fillDepth) << 4) | (15 - fillDepth);

std::stack<FillSeed> seeds;
std::map<int, std::vector<std::pair<int, int>>> segments;
Expand Down

0 comments on commit 01f55cb

Please sign in to comment.