fix reading out of buffer bounds for recent vertex paint commit.
[blender.git] / source / blender / blenkernel / intern / brush.c
index 5d7f9afa78c84bddef4f32276254f5cb02339b5b..d341a2c06e1c045c6931377256370cce1b04ba2b 100644 (file)
@@ -476,7 +476,7 @@ int BKE_brush_clone_image_delete(Brush *brush)
  * region space mouse coordinates, or 3d world coordinates for 3D mapping */
 float BKE_brush_sample_tex_3D(const Scene *scene, Brush *br,
                               const float point[3],
-                              float rgba[3], const int thread,
+                              float rgba[4], const int thread,
                               struct ImagePool *pool)
 {
        UnifiedPaintSettings *ups = &scene->toolsettings->unified_paint_settings;