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:
Hiroyuki Ikezoe 2017-07-27 06:20:33 +09:00
parent 020188fdd7
commit 123e5d33c2

View file

@ -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;