Commit 46396e6d authored by Halla Rempt's avatar Halla Rempt
Browse files

CCBUG:373074 Disable the transform tool on vector layers

It doesn't work... The workaround is to use a transform mask.
parent 77cea2e4
......@@ -258,6 +258,14 @@ void KisToolTransform::beginActionImpl(KoPointerEvent *event, bool usePrimaryAct
if (currentNode()->inherits("KisShapeLayer")) {
QString message = i18n("The transform tool cannot transform a vector layer.");
KisCanvas2 * kiscanvas = static_cast<KisCanvas2*>(canvas());
kiscanvas->viewManager()->showFloatingMessage(message, koIcon("object-locked"));
if (!m_strokeData.strokeId()) {
startStroke(m_currentArgs.mode(), false);
} else {
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