From 453e47eb423306af5f6929ad79e7e6d17c7c656d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 20 Jan 2023 22:30:25 +1100 Subject: [PATCH] Cleanup: suppress clang-tidy warning --- source/blender/editors/uvedit/uvedit_path.c | 2 ++ 1 file changed, 2 insertions(+) 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));