Commit 0982b136 authored by Sven Langkamp's avatar Sven Langkamp
Browse files

save angle and scale in predefined brushes

parent fa50d22b
......@@ -485,6 +485,8 @@ void KisGbrBrush::toXML(QDomDocument& d, QDomElement& e) const
e.setAttribute("type", "gbr_brush");
e.setAttribute("filename", shortFilename());
e.setAttribute("spacing", QString::number(spacing()));
e.setAttribute("angle", QString::number(KisBrush::angle()));
e.setAttribute("scale", QString::number(KisBrush::scale()));
KisBrush::toXML(d, e);
......@@ -51,6 +51,12 @@ KisBrushSP KisGbrBrushFactory::getOrCreateBrush(const QDomElement& brushDefiniti
double angle = brushDefinition.attribute("angle", "0.0").toDouble();
double scale = brushDefinition.attribute("scale", "1.0").toDouble();
return brush;
Supports Markdown
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