diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2022-03-07 19:10:13 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2022-03-07 19:10:13 +0300 |
commit | 5bb2b4236dcf2b84121074660bcf8ed0de03eeeb (patch) | |
tree | f05d7fdd8ba13556111764421469767e58da49f5 /source/blender/editors/uvedit/uvedit_select.c | |
parent | 2d06b97d2918f389ac266b3789aa340c223df463 (diff) |
Cleanup: move asssertion-test-only variable into `#ifndef NDEBUG` block
Move `ToolSettings *ts` into an `#ifdef NDEBUG` block, as it's only used
for a `BLI_assert` call.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_select.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_select.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/uvedit/uvedit_select.c b/source/blender/editors/uvedit/uvedit_select.c index 578e05b2c03..e574dc0620c 100644 --- a/source/blender/editors/uvedit/uvedit_select.c +++ b/source/blender/editors/uvedit/uvedit_select.c @@ -1266,10 +1266,12 @@ 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 BMFace *efa; BMLoop *l; |