mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 06:32:42 +00:00
parent
e87f6df72b
commit
dd208ebe5d
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include "app/tools/active_tool.h"
|
#include "app/tools/active_tool.h"
|
||||||
|
|
||||||
|
#include "app/app.h"
|
||||||
#include "app/color.h"
|
#include "app/color.h"
|
||||||
#include "app/pref/preferences.h"
|
#include "app/pref/preferences.h"
|
||||||
#include "app/tools/active_tool_observer.h"
|
#include "app/tools/active_tool_observer.h"
|
||||||
@ -18,6 +19,7 @@
|
|||||||
#include "app/tools/pointer.h"
|
#include "app/tools/pointer.h"
|
||||||
#include "app/tools/tool_box.h"
|
#include "app/tools/tool_box.h"
|
||||||
#include "app/ui/color_bar.h"
|
#include "app/ui/color_bar.h"
|
||||||
|
#include "app/ui/context_bar.h"
|
||||||
|
|
||||||
namespace app {
|
namespace app {
|
||||||
namespace tools {
|
namespace tools {
|
||||||
@ -236,7 +238,14 @@ void ActiveToolManager::setSelectedTool(Tool* tool)
|
|||||||
// static
|
// static
|
||||||
bool ActiveToolManager::isToolAffectedByRightClickMode(Tool* tool)
|
bool ActiveToolManager::isToolAffectedByRightClickMode(Tool* tool)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#if ENABLE_UI
|
||||||
|
bool shadingMode = ((Preferences::instance().tool(tool).ink() == InkType::SHADING) &&
|
||||||
|
(App::instance()->contextBar()->getShade().size() >= 2));
|
||||||
|
#else
|
||||||
bool shadingMode = (Preferences::instance().tool(tool).ink() == InkType::SHADING);
|
bool shadingMode = (Preferences::instance().tool(tool).ink() == InkType::SHADING);
|
||||||
|
#endif
|
||||||
|
|
||||||
return
|
return
|
||||||
((tool->getInk(0)->isPaint() && !shadingMode) ||
|
((tool->getInk(0)->isPaint() && !shadingMode) ||
|
||||||
(tool->getInk(0)->isEffect())) &&
|
(tool->getInk(0)->isEffect())) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user