Cleanup: Sculpting, fix compiler warning

Fix 'unused variable' warning in release-mode builds. The variable is
only used in a `BLI_assert`.

I've assumed that the call to `BKE_sculpt_object_pbvh_ensure()` is still
important, and not just there for the assertion.

No functional changes.

Pull Request: https://projects.blender.org/blender/blender/pulls/119158
This commit is contained in:
Sybren A. Stüvel
2024-03-07 15:43:55 +01:00
parent 5ab0cc8e74
commit 35a5518379

View File

@@ -537,7 +537,11 @@ static void hide_show_begin(bContext *C, gesture::GestureData * /*gesture_data*/
Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C);
PBVH *pbvh = BKE_sculpt_object_pbvh_ensure(depsgraph, ob);
#ifndef NDEBUG
BLI_assert(BKE_object_sculpt_pbvh_get(ob) == pbvh);
#else
(void)pbvh;
#endif
}
static void hide_show_apply_for_symmetry_pass(bContext *C, gesture::GestureData *gesture_data)