[Bf-blender-cvs] [1e194722e51] sculpt-dev: Sculpt: fix missing NULL check for wire edges

Joseph Eagar noreply at git.blender.org
Sat Oct 16 11:27:02 CEST 2021


Commit: 1e194722e51ee96a4a4e333d022a51a23475f4a9
Author: Joseph Eagar
Date:   Sat Oct 16 02:26:48 2021 -0700
Branches: sculpt-dev
https://developer.blender.org/rB1e194722e51ee96a4a4e333d022a51a23475f4a9

Sculpt: fix missing NULL check for wire edges

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_smooth.c b/source/blender/editors/sculpt_paint/sculpt_smooth.c
index eefe545c5ba..921f4cdf8cb 100644
--- a/source/blender/editors/sculpt_paint/sculpt_smooth.c
+++ b/source/blender/editors/sculpt_paint/sculpt_smooth.c
@@ -128,6 +128,10 @@ void SCULPT_reproject_cdata(SculptSession *ss,
   do {
     e->head.api_flag &= ~tag;
 
+    if (!e->l) {
+      continue;
+    }
+
     BMLoop *l = e->l;
     do {
       l->head.hflag &= ~tag;



More information about the Bf-blender-cvs mailing list