[Bf-blender-cvs] [00fd823bcd5] temp_bmesh_multires: Sculpt dyntopo: Don't calculate curvature info in topology rake if curvature mode is not enabled.

Joseph Eagar noreply at git.blender.org
Sun Jun 20 08:55:29 CEST 2021


Commit: 00fd823bcd59fad07f48472b4ed5c4c31c04312f
Author: Joseph Eagar
Date:   Sat Jun 19 23:54:51 2021 -0700
Branches: temp_bmesh_multires
https://developer.blender.org/rB00fd823bcd59fad07f48472b4ed5c4c31c04312f

Sculpt dyntopo: Don't calculate curvature info in topology rake if curvature
mode is not enabled.

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

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 bd10afefff2..96031a65d21 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -3638,7 +3638,9 @@ static void do_topology_rake_bmesh_task_cb_ex(void *__restrict userdata,
   // const bool update_curvature = node->flag & PBVH_UpdateCurvatureDir;
   const bool update_curvature = BKE_pbvh_curvature_update_get(node);
 
-  SCULPT_curvature_begin(ss, node, false);
+  if (use_curvature) {
+    SCULPT_curvature_begin(ss, node, false);
+  }
 
   PBVHVertexIter vd;
   BKE_pbvh_vertex_iter_begin (ss->pbvh, node, vd, PBVH_ITER_UNIQUE) {



More information about the Bf-blender-cvs mailing list