src/dialogs/circularprimitiveeditor.cpp

changeset 1415
006ced515057
parent 1414
04db55860880
child 1418
503d4e7e27c9
equal deleted inserted replaced
1414:04db55860880 1415:006ced515057
203 { 203 {
204 if (primitive) 204 if (primitive)
205 { 205 {
206 double angle = factor * 360.0 / primitive->divisions(); 206 double angle = factor * 360.0 / primitive->divisions();
207 QMatrix4x4 matrix = primitive->transformationMatrix(); 207 QMatrix4x4 matrix = primitive->transformationMatrix();
208 matrix.rotate(QQuaternion::fromAxisAndAngle({0.0f, 1.0f, 0.0f}, angle)); 208 matrix.rotate(angle, 0, 1, 0);
209 primitive->setTransformationMatrix(matrix); 209 primitive->setTransformationMatrix(matrix);
210 } 210 }
211 } 211 }

mercurial