Define fill_toolloop_params_from_tool_preferences() only when needed

This commit is contained in:
David Capello 2020-05-22 11:15:04 -03:00
parent 3163d00e1e
commit 2bfd3261b5

View File

@ -62,6 +62,8 @@ namespace app {
using namespace ui;
#ifdef ENABLE_UI
static void fill_toolloop_params_from_tool_preferences(ToolLoopParams& params)
{
ToolPreferences& toolPref =
@ -74,6 +76,8 @@ static void fill_toolloop_params_from_tool_preferences(ToolLoopParams& params)
params.freehandAlgorithm = toolPref.freehandAlgorithm();
}
#endif // ENABLE_UI
//////////////////////////////////////////////////////////////////////
// Common properties between drawing/preview ToolLoop impl