diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-06-13 09:08:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-06-13 09:20:09 +0300 |
commit | 827959ff98e77739e5753789ad645d4b53cca3c9 (patch) | |
tree | 25a35ae07419bcd5b4eb53c17a6b7832c364aca7 /source/blender/blenkernel/intern/anim_path.c | |
parent | dd4071b379f0b4024e7dc6ee987d5104ddf35fed (diff) |
Cleanup: use const arguments to deform functions
This changes curve deform code not to set the objects inverse matrix,
this shouldn't cause problems as it's not used elsewhere afterwards.
Diffstat (limited to 'source/blender/blenkernel/intern/anim_path.c')
-rw-r--r-- | source/blender/blenkernel/intern/anim_path.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/anim_path.c b/source/blender/blenkernel/intern/anim_path.c index 56ff7d07809..628e54971ce 100644 --- a/source/blender/blenkernel/intern/anim_path.c +++ b/source/blender/blenkernel/intern/anim_path.c @@ -203,7 +203,7 @@ static int interval_test(const int min, const int max, int p1, const int cycl) * * \return success. */ -bool where_on_path(Object *ob, +bool where_on_path(const Object *ob, float ctime, float r_vec[4], float r_dir[3], @@ -212,14 +212,14 @@ bool where_on_path(Object *ob, float *r_weight) { Curve *cu; - Nurb *nu; - BevList *bl; - Path *path; - PathPoint *pp, *p0, *p1, *p2, *p3; + const Nurb *nu; + const BevList *bl; + const Path *path; + const PathPoint *pp, *p0, *p1, *p2, *p3; float fac; float data[4]; int cycl = 0, s0, s1, s2, s3; - ListBase *nurbs; + const ListBase *nurbs; if (ob == NULL || ob->type != OB_CURVE) { return false; |