GRIM: Remove usage of _currentQuat since it's just an identity.
This commit is contained in:
parent
de7392c1b5
commit
e8d5fc649c
2 changed files with 0 additions and 8 deletions
|
@ -552,11 +552,7 @@ void GfxOpenGL::startActorDraw(const Actor *actor) {
|
|||
const Math::Quaternion &quat = actor->getRotationQuat();
|
||||
const float &scale = actor->getScale();
|
||||
|
||||
Math::Matrix4 worldRot = _currentQuat.toMatrix();
|
||||
worldRot.inverseRotate(&pos);
|
||||
glTranslatef(pos.x(), pos.y(), pos.z());
|
||||
glMultMatrixf(worldRot.getData());
|
||||
|
||||
glScalef(scale, scale, scale);
|
||||
glMultMatrixf(quat.toMatrix().getData());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue