Blender Git Loki

Git Commits -> Revision 06e58f5

Revision 06e58f5 by Alexander Gavrilov (fix-48991)
August 1, 2016, 18:45 (GMT)
Fix T48991: some particles emitted at a distance from object.

The cause seems to be that despite dt_frac being computed as
1/(subframes+1) with integer subframes value, it doesn't always
add up to exactly 1.0 due to precision limitations. If the sum
is similar to 1.00000???, the last subframe is skipped, and all
particles that were supposed to be emitted in that interval are
emitted next frame, with the code working incorrectly due to
skewed time range.

To fix, separate the code from the dynamic timestep feature that
adjusts the last subframe length into a separate function, and
use it even when dynamic timestep is disabled.

Commit Details:

Full Hash: 06e58f59a70b09f060fedad781dfc3731d6e052c
Parent Commit: 138362a
Lines Changed: +7, -2

Tehnyt: Miika HämäläinenViimeksi p?ivitetty: 07.11.2014 14:18 MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2020