Commit 4a18fe3c authored by Boudewijn Rempt's avatar Boudewijn Rempt

Make sure the brushes are also loaded as soon as possible

Loading is done in a thread, so the app isn't waiting for it, until we
try to show the brushs selector in a widget, i.e., on creating a view.
Starting the loading when we load the paintops plugin means the user
doesn't even need to notice, since he's busy doing stuff in the startup
parent 213bc9d0
......@@ -37,6 +37,7 @@
#include "kis_global.h"
#include "kis_paintop_registry.h"
#include "kis_brush_based_paintop_settings.h"
#include "kis_brush_server.h"
K_PLUGIN_FACTORY(DefaultPaintOpsPluginFactory, registerPlugin<DefaultPaintOpsPlugin>();)
......@@ -51,6 +52,7 @@ DefaultPaintOpsPlugin::DefaultPaintOpsPlugin(QObject *parent, const QVariantList
QStringList whiteList;
whiteList << COMPOSITE_COPY;
r->add(new KisSimplePaintOpFactory<KisSmudgeOp, KisBrushBasedPaintOpSettings, KisSmudgeOpSettingsWidget>("smudge", i18n("Smudge Brush"), KisPaintOpFactory::categoryStable(),"krita-smudgebrush.png","smudge-finger", whiteList,2));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment