Commit: 26d6b27ebcc763b4b9da5193334cee061e627fdd
Author: Campbell Barton
Date:   Wed Aug 17 12:50:08 2022 +1000
Branches: master
https://developer.blender.org/rB26d6b27ebcc763b4b9da5193334cee061e627fdd

Cleanup: quiet shadow warning

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_uv.c 
b/source/blender/editors/sculpt_paint/sculpt_uv.c
index 8135da1eb9c..c98e493ca4a 100644
--- a/source/blender/editors/sculpt_paint/sculpt_uv.c
+++ b/source/blender/editors/sculpt_paint/sculpt_uv.c
@@ -442,12 +442,14 @@ static void relaxation_iteration_uv(BMEditMesh *em,
                                        brush, sqrtf(dist_squared), 
sqrtf(radius_squared));
 
     const float *delta_sum = delta_buf[adj_el->element - storage];
-    MLoopUV *luv = BM_ELEM_CD_GET_VOID_P(adj_el->element->l, 
cd_loop_uv_offset);
-    BLI_assert(adj_el->uv == luv->uv); /* Only true for head. */
-    adj_el->uv[0] = luv->uv[0] + strength * safe_divide(delta_sum[0], 
delta_sum[2]);
-    adj_el->uv[1] = luv->uv[1] + strength * safe_divide(delta_sum[1], 
delta_sum[2]);
 
-    apply_sculpt_data_constraints(sculptdata, adj_el->uv);
+    {
+      MLoopUV *luv = BM_ELEM_CD_GET_VOID_P(adj_el->element->l, 
cd_loop_uv_offset);
+      BLI_assert(adj_el->uv == luv->uv); /* Only true for head. */
+      adj_el->uv[0] = luv->uv[0] + strength * safe_divide(delta_sum[0], 
delta_sum[2]);
+      adj_el->uv[1] = luv->uv[1] + strength * safe_divide(delta_sum[1], 
delta_sum[2]);
+      apply_sculpt_data_constraints(sculptdata, adj_el->uv);
+    }
 
     /* Copy UV co-ordinates to all UvElements. */
     UvElement *tail = adj_el->element;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to