Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-08 06:15:34 +0300
committerCampbell Barton <campbell@blender.org>2022-03-08 06:15:34 +0300
commitc0c840cc3109577476c70ae58ed918dea26b2640 (patch)
tree0eb1855553c5f1f13330fc445f06ef047bab77d4 /source/blender/editors/uvedit
parent59c972b40ab0bb7a072984c7f787784e0e0b1d9e (diff)
Cleanup: prefer UNUSED_VARS_NDEBUG for debug only variables
Otherwise it's possible to accidentally use these variables in debug builds, breaking release builds.
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r--source/blender/editors/uvedit/uvedit_select.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/uvedit/uvedit_select.c b/source/blender/editors/uvedit/uvedit_select.c
index e574dc0620c..adf78ec6e96 100644
--- a/source/blender/editors/uvedit/uvedit_select.c
+++ b/source/blender/editors/uvedit/uvedit_select.c
@@ -1266,12 +1266,11 @@ void ED_uvedit_selectmode_flush(Scene *scene, BMEditMesh *em)
* For face selections with sticky mode enabled, this can create invalid selection states. */
void uvedit_select_flush(Scene *scene, BMEditMesh *em)
{
+ ToolSettings *ts = scene->toolsettings;
const int cd_loop_uv_offset = CustomData_get_offset(&em->bm->ldata, CD_MLOOPUV);
-#ifndef NDEBUG
- ToolSettings *ts = scene->toolsettings;
BLI_assert((ts->uv_flag & UV_SYNC_SELECTION) == 0);
-#endif
+ UNUSED_VARS_NDEBUG(ts);
BMFace *efa;
BMLoop *l;