diff options
author | Hans Goudey <h.goudey@me.com> | 2022-04-14 03:22:10 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-04-14 03:22:10 +0300 |
commit | 8e4c3c6a2414a3e3b4dd3e2ffe33535be9d09cc7 (patch) | |
tree | 515ab21dd1b55afc7ecfb0b50a8f089981c12c36 /source/blender/draw/engines/overlay | |
parent | 0ba061c3bc9bf299c17e064c5fc0f6ae9ac906a1 (diff) |
Cleanup: Make curve deform argument optional
The "dir" argument to `BKE_where_on_path` was only actually
used in a few places. It's easier to see where those are if there
isn't always a dummy argument.
Diffstat (limited to 'source/blender/draw/engines/overlay')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_extra.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_extra.c b/source/blender/draw/engines/overlay/overlay_extra.c index 73450db8eea..abcca5525c7 100644 --- a/source/blender/draw/engines/overlay/overlay_extra.c +++ b/source/blender/draw/engines/overlay/overlay_extra.c @@ -528,13 +528,13 @@ static void OVERLAY_forcefield(OVERLAY_ExtraCallBuffers *cb, Object *ob, ViewLay case PFIELD_GUIDE: if (cu && (cu->flag & CU_PATH) && ob->runtime.curve_cache->anim_path_accum_length) { instdata.size_x = instdata.size_y = instdata.size_z = pd->f_strength; - float pos[4], tmp[3]; - BKE_where_on_path(ob, 0.0f, pos, tmp, NULL, NULL, NULL); + float pos[4]; + BKE_where_on_path(ob, 0.0f, pos, NULL, NULL, NULL, NULL); copy_v3_v3(instdata.pos, ob->obmat[3]); translate_m4(instdata.mat, pos[0], pos[1], pos[2]); DRW_buffer_add_entry(cb->field_curve, color, &instdata); - BKE_where_on_path(ob, 1.0f, pos, tmp, NULL, NULL, NULL); + BKE_where_on_path(ob, 1.0f, pos, NULL, NULL, NULL, NULL); copy_v3_v3(instdata.pos, ob->obmat[3]); translate_m4(instdata.mat, pos[0], pos[1], pos[2]); DRW_buffer_add_entry(cb->field_sphere_limit, color, &instdata); |