Fix bug inc/dec the wrong brush size

If we use the eraser side of a wacom pen, and press + o - to change the
brush size, we should change the brush size of the Eraser instead of
the Pencil (or other selected tool).
This commit is contained in:
David Capello 2017-09-22 17:40:04 -03:00
parent 46dbffa45f
commit 6d4756b999

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2001-2016 David Capello
// Copyright (C) 2001-2017 David Capello
//
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.
@ -74,7 +74,7 @@ void ChangeBrushCommand::onExecute(Context* context)
{
// Change the brush of the selected tool in the toolbar (not the
// active tool which might be different, e.g. the quick tool)
tools::Tool* tool = App::instance()->activeToolManager()->selectedTool();
tools::Tool* tool = App::instance()->activeToolManager()->activeTool();
ToolPreferences::Brush& brush =
Preferences::instance().tool(tool).brush;