diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-04-24 19:31:35 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-04-24 19:31:35 +0300 |
commit | c265e25bb1752135e9541789dd1fb6275e4f8309 (patch) | |
tree | 0e32f1755457ac2557e6d0958a6ffd4dc3b17474 /source/blender/draw/intern/draw_cache_impl_particles.c | |
parent | fa4201f82da5cd605af88195d1d98a256c678782 (diff) |
Correct switched values in the previous commit.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_particles.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_particles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_particles.c b/source/blender/draw/intern/draw_cache_impl_particles.c index 87ec2f19481..9a15c51598f 100644 --- a/source/blender/draw/intern/draw_cache_impl_particles.c +++ b/source/blender/draw/intern/draw_cache_impl_particles.c @@ -1611,7 +1611,7 @@ static void particle_batch_cache_ensure_edit_tip_pos(PTCacheEdit *edit, Particle for (int point_index = 0; point_index < edit->totpoint; point_index++) { const PTCacheEditPoint *point = &edit->points[point_index]; PTCacheEditKey *key = &point->keys[point->totkey - 1]; - float color = (key->flag & PEK_SELECT) ? 0.0f : 1.0f; + float color = (key->flag & PEK_SELECT) ? 1.0f : 0.0f; GPU_vertbuf_attr_set(cache->edit_tip_pos, pos_id, point_index, key->world_co); GPU_vertbuf_attr_set(cache->edit_tip_pos, color_id, point_index, &color); |