diff options
author | Liang Qi <liang.qi@qt.io> | 2017-11-06 09:46:51 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2017-11-06 14:25:20 +0000 |
commit | 8e860f836bce8fd70a90798f8817a1410d8d8414 (patch) | |
tree | 9cd4ddc95f3f1e46fd66ee2ddef2d264cac019e1 /src/gui/math3d/qquaternion.h | |
parent | 1a0b4b9f26e16532cc3d5532e25d886426ce994e (diff) | |
parent | a7e4b645dc5b164eb31c22b558ae7a2f5b674afb (diff) |
Merge "Merge remote-tracking branch 'origin/5.10' into dev" into refs/staging/dev
Diffstat (limited to 'src/gui/math3d/qquaternion.h')
-rw-r--r-- | src/gui/math3d/qquaternion.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/math3d/qquaternion.h b/src/gui/math3d/qquaternion.h index 7f7f89db4d..cd0d746e55 100644 --- a/src/gui/math3d/qquaternion.h +++ b/src/gui/math3d/qquaternion.h @@ -210,8 +210,8 @@ inline QQuaternion QQuaternion::inverted() const double(yp) * double(yp) + double(zp) * double(zp); if (!qFuzzyIsNull(len)) - return QQuaternion(double(wp) / len, double(-xp) / len, - double(-yp) / len, double(-zp) / len); + return QQuaternion(float(double(wp) / len), float(double(-xp) / len), + float(double(-yp) / len), float(double(-zp) / len)); return QQuaternion(0.0f, 0.0f, 0.0f, 0.0f); } |