Wed, 20 Jun 2018 00:00:26 +0300
simplified more
src/dialogs/circularprimitiveeditor.cpp | file | annotate | diff | comparison | revisions |
--- a/src/dialogs/circularprimitiveeditor.cpp Tue Jun 19 23:59:05 2018 +0300 +++ b/src/dialogs/circularprimitiveeditor.cpp Wed Jun 20 00:00:26 2018 +0300 @@ -205,7 +205,7 @@ { double angle = factor * 360.0 / primitive->divisions(); QMatrix4x4 matrix = primitive->transformationMatrix(); - matrix.rotate(QQuaternion::fromAxisAndAngle({0.0f, 1.0f, 0.0f}, angle)); + matrix.rotate(angle, 0, 1, 0); primitive->setTransformationMatrix(matrix); } }