mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-03 05:22:23 +00:00
This commit is contained in:
parent
0bdcdbfc49
commit
4df11ac1e3
@ -152,6 +152,12 @@ bool ToolLoopManager::releaseButton(const Pointer& pointer)
|
|||||||
if (isCanceled())
|
if (isCanceled())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (m_toolLoop->getController()->isOnePoint() &&
|
||||||
|
m_toolLoop->getInk()->isSelection() &&
|
||||||
|
!m_toolLoop->getSrcImage()->bounds().contains(pointer.point())) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
Stroke::Pt spritePoint = getSpriteStrokePt(pointer);
|
Stroke::Pt spritePoint = getSpriteStrokePt(pointer);
|
||||||
bool res = m_toolLoop->getController()->releaseButton(m_stroke, spritePoint);
|
bool res = m_toolLoop->getController()->releaseButton(m_stroke, spritePoint);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user