mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 02:53:19 +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
|
||||
// Copyright (C) 2018-2021 Igara Studio S.A.
|
||||
// Copyright (C) 2018-2022 Igara Studio S.A.
|
||||
// Copyright (C) 2001-2018 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
@ -574,10 +574,8 @@ public:
|
||||
}
|
||||
|
||||
void fillStroke(ToolLoop* loop, const Stroke& stroke) override {
|
||||
if (stroke.size() < 3) {
|
||||
joinStroke(loop, stroke);
|
||||
if (stroke.empty())
|
||||
return;
|
||||
}
|
||||
|
||||
// Fill content
|
||||
auto v = m_pts.toXYInts();
|
||||
|
Loading…
Reference in New Issue
Block a user