mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 21:19:18 +00:00
Update context bar controls correctly when a new brush type is selected from a brush slot
This commit is contained in:
parent
7a553f5c98
commit
a3e77a657a
@ -1627,8 +1627,6 @@ void ContextBar::setActiveBrushBySlot(int slot)
|
||||
setActiveBrush(brush.brush());
|
||||
}
|
||||
else {
|
||||
setActiveBrush(ContextBar::createBrushFromPreferences());
|
||||
|
||||
if (brush.hasFlag(BrushSlot::Flags::BrushType))
|
||||
brushPref.type(static_cast<app::gen::BrushType>(brush.brush()->type()));
|
||||
|
||||
@ -1637,6 +1635,8 @@ void ContextBar::setActiveBrushBySlot(int slot)
|
||||
|
||||
if (brush.hasFlag(BrushSlot::Flags::BrushAngle))
|
||||
brushPref.angle(brush.brush()->angle());
|
||||
|
||||
setActiveBrush(ContextBar::createBrushFromPreferences());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user