diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-12 13:18:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-12 13:18:21 +0300 |
commit | 9e9e028f059f29d493dc020dda965a9bea8ffd6b (patch) | |
tree | b2785d85bbe058f896f699f87588527a7bc31368 /source/blender/blenkernel/BKE_multires.h | |
parent | 3396f73c1719db18500d4741d4fc21d6bba9423c (diff) |
access past array bounds in layerInterp_mdisps, also make some vars const.
Diffstat (limited to 'source/blender/blenkernel/BKE_multires.h')
-rw-r--r-- | source/blender/blenkernel/BKE_multires.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/BKE_multires.h b/source/blender/blenkernel/BKE_multires.h index 23fabce68ba..de895ebce51 100644 --- a/source/blender/blenkernel/BKE_multires.h +++ b/source/blender/blenkernel/BKE_multires.h @@ -84,12 +84,12 @@ void multires_mdisp_smooth_bounds(struct MDisps *disps); void multires_topology_changed(struct Scene *scene, struct Object *ob); /**** interpolation stuff ****/ -void old_mdisps_bilinear(float out[3], float (*disps)[3], int st, float u, float v); -void mdisp_rot_crn_to_face(int S, int corners, int face_side, float x, float y, float *u, float *v); -int mdisp_rot_face_to_crn(int corners, int face_side, float u, float v, float *x, float *y); -void mdisp_apply_weight(int S, int corners, int x, int y, int face_side, float crn_weight[4][2], float *u_r, float *v_r); -void mdisp_flip_disp(int S, int corners, float axis_x[2], float axis_y[2], float disp[3]); +void old_mdisps_bilinear(float out[3], float (*disps)[3], const int st, float u, float v); +void mdisp_rot_crn_to_face(const int S, const int corners, const int face_side, const float x, const float y, float *u, float *v); +int mdisp_rot_face_to_crn(const int corners, const int face_side, const float u, const float v, float *x, float *y); +void mdisp_apply_weight(const int S, const int corners, int x, int y, const int face_side, float crn_weight[4][2], float *u_r, float *v_r); +void mdisp_flip_disp(const int S, const int corners, const float axis_x[2], const float axis_y[2], float disp[3]); void mdisp_join_tris(struct MDisps *dst, struct MDisps *tri1, struct MDisps *tri2); -#endif +#endif // BKE_MULTIRES_H |