From 7b6d76f3875916939b833057a9933de58d7936fa Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 11 Nov 2020 20:27:31 +1100 Subject: Cleanup: correct argument order to callback Currently the callback isn't used, found when testing a new enum callback. --- source/blender/windowmanager/intern/wm_operators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 7b1d69e83c7..50b4f39d8e1 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -3987,7 +3987,7 @@ static const EnumPropertyItem *rna_id_itemf(bContext *UNUSED(C), int i = 0; for (; id; id = id->next) { - if ((filter_ids != NULL) && filter_ids(user_data, id) == false) { + if ((filter_ids != NULL) && filter_ids(id, user_data) == false) { i++; continue; } -- cgit v1.2.3