[skottie] Fix camera z-rotation

Flip z consistently.

TBR=reed
Change-Id: I910d6e2ae4cc21992b5b5c3acb5c4074b1e4204e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/210382
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
This commit is contained in:
Florin Malita 2019-04-25 10:42:25 -04:00 committed by Skia Commit-Bot
parent a085a41b9d
commit 7cd5ea0a63
2 changed files with 4 additions and 3 deletions

View File

@ -134,11 +134,11 @@ SkMatrix44 CameraAdapter::totalMatrix() const {
{
SkMatrix44 rot;
rot.setRotateDegreesAbout(1, 0, 0, this->getRotation().fX);
rot.setRotateDegreesAbout(1, 0, 0, this->getRotation().fX);
cam_t.postConcat(rot);
rot.setRotateDegreesAbout(0, 1, 0, this->getRotation().fY);
rot.setRotateDegreesAbout(0, 1, 0, this->getRotation().fY);
cam_t.postConcat(rot);
rot.setRotateDegreesAbout(0, 0, 1, this->getRotation().fZ);
rot.setRotateDegreesAbout(0, 0, 1, -this->getRotation().fZ);
cam_t.postConcat(rot);
}

File diff suppressed because one or more lines are too long