style: The fix: scale and translate appropriately.

Loops are hard. This hasn't been the funniest Saturday evening.

Bug: 1459403
Reviewed-by: hiro
MozReview-Commit-ID: I8rfuIRIsrY
This commit is contained in:
Emilio Cobos Álvarez 2018-05-26 23:50:11 +02:00
parent b199ca864a
commit 82e97b8ec5
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -2154,7 +2154,7 @@ impl From<MatrixDecomposed3D> for Matrix3D {
% endfor % endfor
// Apply translation // Apply translation
% for i in range(1, 4): % for i in range(1, 5):
% for j in range(1, 4): % for j in range(1, 4):
matrix.m4${i} += decomposed.translate.${j - 1} * matrix.m${j}${i}; matrix.m4${i} += decomposed.translate.${j - 1} * matrix.m${j}${i};
% endfor % endfor
@ -2206,7 +2206,7 @@ impl From<MatrixDecomposed3D> for Matrix3D {
// Apply scale // Apply scale
% for i in range(1, 4): % for i in range(1, 4):
% for j in range(1, 4): % for j in range(1, 5):
matrix.m${i}${j} *= decomposed.scale.${i - 1}; matrix.m${i}${j} *= decomposed.scale.${i - 1};
% endfor % endfor
% endfor % endfor