mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 14:42:44 +00:00
Use configured dynamics of active tool w/o opening dynamics popup (fix #4151)
This commit is contained in:
parent
cc0f8d0dc4
commit
8af4747635
@ -1187,9 +1187,14 @@ public:
|
|||||||
m_popup->setHotRegion(gfx::Region(m_popup->boundsOnScreen()));
|
m_popup->setHotRegion(gfx::Region(m_popup->boundsOnScreen()));
|
||||||
}
|
}
|
||||||
|
|
||||||
const tools::DynamicsOptions& getDynamics() const {
|
const tools::DynamicsOptions& getDynamics() {
|
||||||
if (m_popup && m_popup->isVisible())
|
if (m_popup && m_popup->isVisible()) {
|
||||||
m_dynamics = m_popup->getDynamics();
|
m_dynamics = m_popup->getDynamics();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Load dynamics just in case that the active tool has changed.
|
||||||
|
loadDynamicsPref();
|
||||||
|
}
|
||||||
return m_dynamics;
|
return m_dynamics;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user