mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 06:32:42 +00:00
Simplify hidden brush preview style
This commit is contained in:
parent
300fceec3f
commit
b4ce12beb4
@ -141,17 +141,8 @@ void BrushPreview::show(const gfx::Point& screenPos)
|
||||
bool usePreview = false;
|
||||
|
||||
auto brushPreview = pref.editor.brushPreview();
|
||||
|
||||
// If the brush preview is hidden, we step down one level. E.g. If
|
||||
// we have full-brush preview, we move to edges, or if it's edges,
|
||||
// we don't show it at all.
|
||||
if (!m_editor->docPref().show.brushPreview()) {
|
||||
switch (brushPreview) {
|
||||
case app::gen::BrushPreview::NONE: break;
|
||||
case app::gen::BrushPreview::EDGES: brushPreview = app::gen::BrushPreview::NONE; break;
|
||||
case app::gen::BrushPreview::FULL: brushPreview = app::gen::BrushPreview::EDGES; break;
|
||||
}
|
||||
}
|
||||
if (!m_editor->docPref().show.brushPreview())
|
||||
brushPreview = app::gen::BrushPreview::NONE;
|
||||
|
||||
switch (brushPreview) {
|
||||
case app::gen::BrushPreview::NONE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user