mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-19 19:21:08 +00:00
Fix CounCountour Tool: pixel perfect doesnt work after a straight line (fix #4256)
This commit is contained in:
parent
dd9f1ce988
commit
611713e5fc
@ -1,5 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
// Copyright (C) 2018-2022 Igara Studio S.A.
|
// Copyright (C) 2018-2024 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
|
||||||
@ -564,7 +564,7 @@ public:
|
|||||||
// point so we can restore it when erasing a point because of
|
// point so we can restore it when erasing a point because of
|
||||||
// pixel-perfect. So we set the following flag to indicate this, and
|
// pixel-perfect. So we set the following flag to indicate this, and
|
||||||
// use it in doTransformPoint.
|
// use it in doTransformPoint.
|
||||||
m_saveStrokeArea = (c == m_pts.size() - 1 && !m_retainedTracePolicyLast);
|
m_saveStrokeArea = (c == m_pts.size() - 1);
|
||||||
if (m_saveStrokeArea) {
|
if (m_saveStrokeArea) {
|
||||||
clearPointshapeStrokePtAreas();
|
clearPointshapeStrokePtAreas();
|
||||||
setLastPtIndex(c);
|
setLastPtIndex(c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user