mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
oops, don't forget to remove the sqrt
This commit is contained in:
parent
c9c0b9ebc4
commit
3ed3a74b7d
1 changed files with 2 additions and 2 deletions
|
@ -267,7 +267,7 @@ void quatFromScriptValue(const QScriptValue& object, glm::quat &quat) {
|
|||
// enforce normalized quaternion
|
||||
float length = glm::length(quat);
|
||||
if (length > FLT_EPSILON) {
|
||||
quat /= sqrtf(length);
|
||||
quat /= length;
|
||||
} else {
|
||||
quat = glm::quat();
|
||||
}
|
||||
|
@ -285,7 +285,7 @@ glm::quat quatFromVariant(const QVariant &object, bool& isValid) {
|
|||
// enforce normalized quaternion
|
||||
float length = glm::length(q);
|
||||
if (length > FLT_EPSILON) {
|
||||
q /= sqrtf(length);
|
||||
q /= length;
|
||||
} else {
|
||||
q = glm::quat();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue