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 } |