Blender Git Loki

Git Commits -> Revision 4067ab3

Revision 4067ab3 by Alexander Gavrilov (master)
August 1, 2016, 19:14 (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: 4067ab38ab6035f71b6ce3f2f610000411160d21
Parent Commit: 538b302
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