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:
parent
52d90a9b26
commit
411b913025
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user