mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-08 03:42:09 +00:00
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:
parent
46dbffa45f
commit
6d4756b999
@ -1,5 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
// Copyright (C) 2001-2016 David Capello
|
// Copyright (C) 2001-2017 David Capello
|
||||||
//
|
//
|
||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// 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
|
// Change the brush of the selected tool in the toolbar (not the
|
||||||
// active tool which might be different, e.g. the quick tool)
|
// 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 =
|
ToolPreferences::Brush& brush =
|
||||||
Preferences::instance().tool(tool).brush;
|
Preferences::instance().tool(tool).brush;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user