[Bf-blender-cvs] [453e47eb423] master: Cleanup: suppress clang-tidy warning

Campbell Barton noreply at git.blender.org
Fri Jan 20 12:34:02 CET 2023


Commit: 453e47eb423306af5f6929ad79e7e6d17c7c656d
Author: Campbell Barton
Date:   Fri Jan 20 22:30:25 2023 +1100
Branches: master
https://developer.blender.org/rB453e47eb423306af5f6929ad79e7e6d17c7c656d

Cleanup: suppress clang-tidy warning

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

M	source/blender/editors/uvedit/uvedit_path.c

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

diff --git a/source/blender/editors/uvedit/uvedit_path.c b/source/blender/editors/uvedit/uvedit_path.c
index 00d86fef831..274196f79a4 100644
--- a/source/blender/editors/uvedit/uvedit_path.c
+++ b/source/blender/editors/uvedit/uvedit_path.c
@@ -709,6 +709,7 @@ static int uv_shortest_path_pick_exec(bContext *C, wmOperator *op)
 
   BMElem *ele_src, *ele_dst;
 
+  /* NOLINTBEGIN: bugprone-assignment-in-if-condition */
   if (uv_selectmode & UV_SELECT_FACE) {
     if (index < 0 || index >= bm->totface) {
       return OPERATOR_CANCELLED;
@@ -736,6 +737,7 @@ static int uv_shortest_path_pick_exec(bContext *C, wmOperator *op)
       return OPERATOR_CANCELLED;
     }
   }
+  /* NOLINTEND: bugprone-assignment-in-if-condition */
 
   /* Always use the active object, not `obedit` as the active defines the UV display. */
   const float aspect_y = ED_uvedit_get_aspect_y(CTX_data_edit_object(C));



More information about the Bf-blender-cvs mailing list