mirror of
https://github.com/servo/servo.git
synced 2025-06-29 11:33:39 +01:00
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:
parent
b199ca864a
commit
82e97b8ec5
1 changed files with 4 additions and 4 deletions
|
@ -2154,7 +2154,7 @@ impl From<MatrixDecomposed3D> for Matrix3D {
|
|||
% endfor
|
||||
|
||||
// Apply translation
|
||||
% for i in range(1, 4):
|
||||
% for i in range(1, 5):
|
||||
% for j in range(1, 4):
|
||||
matrix.m4${i} += decomposed.translate.${j - 1} * matrix.m${j}${i};
|
||||
% endfor
|
||||
|
@ -2206,7 +2206,7 @@ impl From<MatrixDecomposed3D> for Matrix3D {
|
|||
|
||||
// Apply scale
|
||||
% 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};
|
||||
% endfor
|
||||
% endfor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue