mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
MatrixDecomposed3D.add_weighted() is called with zero value for other_portion in case of iteration composite.
In the case where we accumulate transform:none onto decomposed matrix for iteration composite whose iteration count is over 2, we pass zero other_portion and self_portion which is over 1.0. We should care about the case.
This commit is contained in:
parent
020188fdd7
commit
123e5d33c2
1 changed files with 1 additions and 1 deletions
|
@ -2274,7 +2274,7 @@ impl Animatable for MatrixDecomposed3D {
|
|||
use std::f64;
|
||||
|
||||
debug_assert!((self_portion + other_portion - 1.0f64).abs() <= f64::EPSILON ||
|
||||
other_portion == 1.0f64,
|
||||
other_portion == 1.0f64 || other_portion == 0.0f64,
|
||||
"add_weighted should only be used for interpolating or accumulating transforms");
|
||||
|
||||
let mut sum = *self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue