[Bf-blender-cvs] [058ce64be00] master: Fix: Uninitialized paint brush when using byte textures.

Jeroen Bakker noreply at git.blender.org
Tue Apr 19 12:38:35 CEST 2022


Commit: 058ce64be0001930a2100c31298bafe1c3a62b9e
Author: Jeroen Bakker
Date:   Tue Apr 19 08:35:54 2022 +0200
Branches: master
https://developer.blender.org/rB058ce64be0001930a2100c31298bafe1c3a62b9e

Fix: Uninitialized paint brush when using byte textures.

This is a fix for the 3d texturing brush.

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_paint_image.cc

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt_paint_image.cc b/source/blender/editors/sculpt_paint/sculpt_paint_image.cc
index 1fc7551f545..df1ccc0fbe9 100644
--- a/source/blender/editors/sculpt_paint/sculpt_paint_image.cc
+++ b/source/blender/editors/sculpt_paint/sculpt_paint_image.cc
@@ -330,7 +330,7 @@ static void do_paint_pixels(void *__restrict userdata,
           kernel_float4.init_brush_color(image_buffer);
         }
         else {
-          kernel_float4.init_brush_color(image_buffer);
+          kernel_byte4.init_brush_color(image_buffer);
         }
 
         for (const PackedPixelRow &pixel_row : tile_data.pixel_rows) {



More information about the Bf-blender-cvs mailing list