1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 10:22:52 +01:00

Fixed RT and RTS frame matrix order

This commit is contained in:
Daniel Evans 2014-03-01 11:30:01 +00:00
parent 52d90a9b26
commit 411b913025

View File

@ -78,12 +78,12 @@ glm::mat4 Animator::getFrameMatrix(ModelFrame* frame, float alpha) const
m = m * glm::mat4_cast(kf.rotation);
}
else if(it->second->type == AnimationBone::RT0) {
m = glm::mat4_cast(kf.rotation);
m = glm::translate(m, kf.position);
m = m * glm::mat4_cast(kf.rotation);
}
else {
m = glm::mat4_cast(kf.rotation);
m = glm::translate(m, kf.position);
m = m * glm::mat4_cast(kf.rotation);
}
return m;
}