diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-07-02 14:17:43 +0400 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2014-07-02 14:20:51 +0400 |
commit | 259a4361973c7e1b912b9fcded3ed02bf9ab0b96 (patch) | |
tree | 7cb2dba4ef4dedafd0022e5fd0b47d57957b10a0 /source/blender/editors/physics/particle_edit.c | |
parent | 7587e82c288e46ef257e1de12cb0952ad234abff (diff) |
Fix T40815: Particle birth times not initialized correctly.
In rB78c491e the `initialize_particle` function was split into 2 parts for particle texture initialization.
The texture init part however also initializes birth times, which is now missing in the main init function
in some cases (notably when setting start/end directly without a subsequent time step).
Diffstat (limited to 'source/blender/editors/physics/particle_edit.c')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 5432f059405..5401cef8351 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -3487,7 +3487,7 @@ static int brush_add(PEData *data, short number) } pa->size= 1.0f; - initialize_particle(pa); + initialize_particle(&sim, pa); reset_particle(&sim, pa, 0.0, 1.0); point->flag |= PEP_EDIT_RECALC; if (pe_x_mirror(ob)) |