diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-03-13 18:19:55 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-03-13 18:19:55 +0400 |
commit | 136738029ea0d6f142d8c1e1f5ba6a60cccf45e1 (patch) | |
tree | fe687cf19dfa85b3a9300abc5744e11d9dc44225 /source/blender/blenkernel | |
parent | 4e86946c2b7d9334aa6bad3c1f4f0844b0c2a76a (diff) |
Fix write past end of array in recent texture sampling refactoring commit, and
a small warning for double const keyword.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 3d32ac8db77..289086f8b86 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -539,7 +539,7 @@ float BKE_brush_sample_tex_3D(const Scene *scene, Brush *br, float point_2d[2] = {point[0], point[1]}; float x = 0.0f, y = 0.0f; /* Quite warnings */ float radius = 1.0f; /* Quite warnings */ - float co[2]; + float co[3]; if (mtex->brush_map_mode == MTEX_MAP_MODE_VIEW) { /* keep coordinates relative to mouse */ |