mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-08 12:40:50 +00:00
Fix contour tool preview with image brush
This commit is contained in:
parent
7bdff92846
commit
8b7b62b2d4
@ -123,7 +123,12 @@ public:
|
||||
}
|
||||
|
||||
// Closed shape (polygon outline)
|
||||
if (loop->getFilled()) {
|
||||
// Note: Contour tool was getting into the condition with no need, so
|
||||
// we add the && !isFreehand to detect this circunstance.
|
||||
// When this is missing, we have problems previewing the stroke of
|
||||
// contour tool, with brush type = kImageBrush with alpha content and
|
||||
// with not Pixel Perfect pencil mode.
|
||||
if (loop->getFilled() && !loop->getController()->isFreehand()) {
|
||||
doPointshapeLine(stroke[0].x, stroke[0].y,
|
||||
stroke[stroke.size()-1].x,
|
||||
stroke[stroke.size()-1].y, loop);
|
||||
|
Loading…
Reference in New Issue
Block a user