Cleanup: prefer UNUSED_VARS_NDEBUG for debug only variables
Otherwise it's possible to accidentally use these variables in debug builds, breaking release builds.
This commit is contained in:
parent
59c972b40a
commit
c0c840cc31
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue