mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-22 15:39:52 +00:00
Temporal fix for filling polygons (at least with regular brushes)
This commit is contained in:
parent
87f86ee96c
commit
262b8abc90
@ -151,7 +151,11 @@ public:
|
||||
// polygon and the contour when we use a custom brush and we use
|
||||
// the alpha compositing ink with opacity < 255 or the custom
|
||||
// brush has semi-transparent pixels.
|
||||
//joinStroke(loop, stroke);
|
||||
if (loop->getBrush()->type() != BrushType::kImageBrushType) {
|
||||
// TODO if we fix the doc::algorithm::polygon to draw the exact
|
||||
// scanlines, we can finally remove this joinStroke()
|
||||
joinStroke(loop, stroke);
|
||||
}
|
||||
|
||||
// Fill content
|
||||
doc::algorithm::polygon(stroke.size(), (const int*)&stroke[0], loop, (AlgoHLine)doPointshapeHline);
|
||||
@ -485,7 +489,11 @@ public:
|
||||
// polygon and the contour when we use a custom brush and we use
|
||||
// the alpha compositing ink with opacity < 255 or the custom
|
||||
// brush has semi-transparent pixels.
|
||||
//joinStroke(loop, stroke);
|
||||
if (loop->getBrush()->type() != BrushType::kImageBrushType) {
|
||||
// TODO if we fix the doc::algorithm::polygon to draw the exact
|
||||
// scanlines, we can finally remove this joinStroke()
|
||||
joinStroke(loop, stroke);
|
||||
}
|
||||
|
||||
// Fill content
|
||||
doc::algorithm::polygon(stroke.size(), (const int*)&stroke[0], loop, (AlgoHLine)doPointshapeHline);
|
||||
|
Loading…
x
Reference in New Issue
Block a user