Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 668efc57 authored by Wolthera van Hövell's avatar Wolthera van Hövell 🛍

Ensure even-numbered dimensions don't get rotated.

We should proly have a rotation slider at some point, but this is
a good default.
parent 8d6ff136
......@@ -166,7 +166,9 @@ void KisMultigridPatternGenerator::generate(KisProcessingInformation dstInfo,
QTransform tf;
tf.translate(bounds.center().x(), bounds.center().y());
tf.scale(scale, scale);
tf.rotateRadians((M_PI/dimensions)*.5);
if (dimensions%2>0) {
tf.rotateRadians((M_PI/dimensions)*0.5);
}
KoColor c = grad->stops()[0].color;
for (int i= 0; i < rhombs.size(); i++){
KisMultiGridRhomb rhomb = rhombs.at(i);
......
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