mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 06:28:48 +02:00
Bug fix for passing quats from script to C++ via the animationStateHandler
This commit is contained in:
parent
e065c1bac4
commit
a06df1a400
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ void AnimVariantMap::animVariantMapFromScriptValue(const QScriptValue& source) {
|
|||
if (z.isNumber()) {
|
||||
QScriptValue w = value.property("w");
|
||||
if (w.isNumber()) {
|
||||
set(property.name(), glm::quat(x.toNumber(), y.toNumber(), z.toNumber(), w.toNumber()));
|
||||
set(property.name(), glm::quat(w.toNumber(), x.toNumber(), y.toNumber(), z.toNumber()));
|
||||
} else {
|
||||
set(property.name(), glm::vec3(x.toNumber(), y.toNumber(), z.toNumber()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue