diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-03-29 13:30:20 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-03-29 13:31:32 +0300 |
commit | 95b9680597f53add7c36740d90bad7b283cb27c1 (patch) | |
tree | b8982f37b2a7eaa04b8a98d9106c16f4ec67e58e /source/blender/draw/intern/draw_cache.c | |
parent | 0cbf747ffaa64e8e91f7b919d463382aee490169 (diff) |
Draw manager: Make particle code drawing closer to old viewport
The way how particle state is to be accessed or used did not change
in Blender 2.8, so the drawing code should follow old design.
This code is somewhat duplicated from drawobject.c, but old draw
code is on the way to be removed anyway.
This fixes issue with disappearing particles when tweaking number
of particles.
Diffstat (limited to 'source/blender/draw/intern/draw_cache.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c index 8fdf1a2fce7..301a39d053f 100644 --- a/source/blender/draw/intern/draw_cache.c +++ b/source/blender/draw/intern/draw_cache.c @@ -2573,9 +2573,9 @@ Gwn_Batch *DRW_cache_particles_get_hair(ParticleSystem *psys, ModifierData *md) return DRW_particles_batch_cache_get_hair(psys, md); } -Gwn_Batch *DRW_cache_particles_get_dots(ParticleSystem *psys) +Gwn_Batch *DRW_cache_particles_get_dots(Object *object, ParticleSystem *psys) { - return DRW_particles_batch_cache_get_dots(psys); + return DRW_particles_batch_cache_get_dots(object, psys); } Gwn_Batch *DRW_cache_particles_get_prim(int type) |