mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 15:54:41 +00:00
Fix contour tool + pixel perfect when drawing just one pixel
Bug report: https://community.aseprite.org/t/13149
This commit is contained in:
parent
cef7e7eed1
commit
e12fb556c1
@ -1,5 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
// Copyright (C) 2018-2021 Igara Studio S.A.
|
// Copyright (C) 2018-2022 Igara Studio S.A.
|
||||||
// Copyright (C) 2001-2018 David Capello
|
// Copyright (C) 2001-2018 David Capello
|
||||||
//
|
//
|
||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
@ -574,10 +574,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void fillStroke(ToolLoop* loop, const Stroke& stroke) override {
|
void fillStroke(ToolLoop* loop, const Stroke& stroke) override {
|
||||||
if (stroke.size() < 3) {
|
if (stroke.empty())
|
||||||
joinStroke(loop, stroke);
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
// Fill content
|
// Fill content
|
||||||
auto v = m_pts.toXYInts();
|
auto v = m_pts.toXYInts();
|
||||||
|
Loading…
Reference in New Issue
Block a user