diff options
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_select.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index 77b23081a62..9c23daab923 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -958,6 +958,7 @@ static void child_get_inverse_matrix_owner_object( /* make sure we passed the correct constraint */ BLI_assert(BLI_findindex(&ob->constraints, con) != -1); + UNUSED_VARS_NDEBUG(con); /* use BKE_object_workob_calc_parent to find inverse - just like for normal parenting */ BKE_object_workob_calc_parent(depsgraph, scene, ob, &workob); diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c index 9488e520453..65ed707b2c1 100644 --- a/source/blender/editors/space_view3d/view3d_select.c +++ b/source/blender/editors/space_view3d/view3d_select.c @@ -1626,6 +1626,7 @@ static int object_select_menu_exec(bContext *C, wmOperator *op) if (basact == NULL) { return OPERATOR_CANCELLED; } + UNUSED_VARS_NDEBUG(v3d); BLI_assert(BASE_SELECTABLE(v3d, basact)); if (extend) { |