mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:07:58 +02:00
make implicit cast explicit
This commit is contained in:
parent
1e38170ba9
commit
be0ca41eb3
1 changed files with 1 additions and 1 deletions
|
@ -370,7 +370,7 @@ glm::quat glmExtractRotation(const glm::mat4& matrix) {
|
||||||
glm::vec3 extractScale(const glm::mat4& matrix) {
|
glm::vec3 extractScale(const glm::mat4& matrix) {
|
||||||
glm::mat3 m(matrix);
|
glm::mat3 m(matrix);
|
||||||
float det = glm::determinant(m);
|
float det = glm::determinant(m);
|
||||||
if (det < 0) {
|
if (det < 0.0f) {
|
||||||
// left handed matrix, flip sign to compensate.
|
// left handed matrix, flip sign to compensate.
|
||||||
return glm::vec3(-glm::length(m[0]), glm::length(m[1]), glm::length(m[2]));
|
return glm::vec3(-glm::length(m[0]), glm::length(m[1]), glm::length(m[2]));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue