mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-11 18:41:05 +00:00
Fix problem where the cel opacity slider in StatusBar was not activated
After creating a new cel from a tool loop, we have to generate an ActiveSiteChange notification (because now we have a cel in the active position). In this way the StatusBar can update/enable the opacity slider.
This commit is contained in:
parent
c6c7439566
commit
cb5fd3963f
@ -148,6 +148,11 @@ void ExpandCelCanvas::commit()
|
||||
|
||||
// And finally we add the cel again in the layer.
|
||||
m_transaction.execute(new cmd::AddCel(m_layer, m_cel));
|
||||
|
||||
// As we've created the cel, the active context site has changed
|
||||
// (context->site().cel() to be precise).
|
||||
if (m_document->context())
|
||||
m_document->context()->notifyActiveSiteChanged();
|
||||
}
|
||||
else if (m_celImage) {
|
||||
// If the size of each image is the same, we can create an undo
|
||||
|
Loading…
x
Reference in New Issue
Block a user