Simplify hidden brush preview style

This commit is contained in:
David Capello 2016-03-24 14:51:57 -03:00
parent 300fceec3f
commit b4ce12beb4

View File

@ -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: