Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-03-13 18:19:55 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-03-13 18:19:55 +0400
commit136738029ea0d6f142d8c1e1f5ba6a60cccf45e1 (patch)
treefe687cf19dfa85b3a9300abc5744e11d9dc44225 /source/blender/blenkernel/intern
parent4e86946c2b7d9334aa6bad3c1f4f0844b0c2a76a (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/intern')
-rw-r--r--source/blender/blenkernel/intern/brush.c2
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 */