Cleanup: unused variable

This commit is contained in:
2019-08-02 12:04:59 +10:00
parent 53a0916636
commit 9be956c326

View File

@@ -155,12 +155,8 @@ void ED_view3d_clipping_enable(void)
/**
* \note Only use in object mode.
*/
static void validate_object_select_id(struct Depsgraph *depsgraph,
Scene *scene,
ViewLayer *view_layer,
ARegion *ar,
View3D *v3d,
Object *obact)
static void validate_object_select_id(
struct Depsgraph *depsgraph, ViewLayer *view_layer, ARegion *ar, View3D *v3d, Object *obact)
{
Object *obact_eval = DEG_get_evaluated_object(depsgraph, obact);
@@ -223,8 +219,7 @@ void ED_view3d_select_id_validate(ViewContext *vc)
/* TODO: Create a flag in `DRW_manager` because the drawing is no longer
* made on the backbuffer in this case. */
if (vc->v3d->flag & V3D_INVALID_BACKBUF) {
validate_object_select_id(
vc->depsgraph, vc->scene, vc->view_layer, vc->ar, vc->v3d, vc->obact);
validate_object_select_id(vc->depsgraph, vc->view_layer, vc->ar, vc->v3d, vc->obact);
}
}