[Bf-blender-cvs] [61e2d15bfe5] sculpt-dev: Sculpt-dev: fix memory corruption

Joseph Eagar noreply at git.blender.org
Mon Nov 29 03:50:54 CET 2021


Commit: 61e2d15bfe52302719de6eabaa086b3ac230c57c
Author: Joseph Eagar
Date:   Sun Nov 28 18:50:42 2021 -0800
Branches: sculpt-dev
https://developer.blender.org/rB61e2d15bfe52302719de6eabaa086b3ac230c57c

Sculpt-dev: fix memory corruption

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

M	source/blender/editors/sculpt_paint/sculpt.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 0e690f004ab..edd7dc1a377 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -6069,6 +6069,7 @@ static void SCULPT_run_command(
 
   ss->cache->channels_final = channels_final;
   ss->cache->brush = brush;
+  sd->paint.brush_eval = NULL;
 
   MEM_SAFE_FREE(nodes);
 }



More information about the Bf-blender-cvs mailing list