Sculpt dyntopo: Don't calculate curvature info in topology rake if curvature

mode is not enabled.
This commit is contained in:
Joseph Eagar 2021-06-19 23:54:51 -07:00
parent 8ca52a7757
commit 00fd823bcd
1 changed files with 3 additions and 1 deletions

View File

@ -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) {