Commit 14b3bfb1 authored by Sylvain Thery's avatar Sylvain Thery

patch quaternion type problem (as 2.6.2)

parent 66d995c2
...@@ -152,10 +152,10 @@ void Quaternion::setFromRotationMatrix(const float m[3][3]) ...@@ -152,10 +152,10 @@ void Quaternion::setFromRotationMatrix(const float m[3][3])
{ {
qWarning("setFromRotationMatrix now expects a double[3][3] parameter"); qWarning("setFromRotationMatrix now expects a double[3][3] parameter");
float mat[3][3]; qreal mat[3][3];
for (int i=0; i<3; ++i) for (int i=0; i<3; ++i)
for (int j=0; j<3; ++j) for (int j=0; j<3; ++j)
mat[i][j] = float(m[i][j]); mat[i][j] = qreal(m[i][j]);
setFromRotationMatrix(mat); setFromRotationMatrix(mat);
} }
......
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