[Bf-blender-cvs] [7b6d76f3875] master: Cleanup: correct argument order to callback

Campbell Barton noreply at git.blender.org
Wed Nov 11 10:41:19 CET 2020


Commit: 7b6d76f3875916939b833057a9933de58d7936fa
Author: Campbell Barton
Date:   Wed Nov 11 20:27:31 2020 +1100
Branches: master
https://developer.blender.org/rB7b6d76f3875916939b833057a9933de58d7936fa

Cleanup: correct argument order to callback

Currently the callback isn't used,
found when testing a new enum callback.

===================================================================

M	source/blender/windowmanager/intern/wm_operators.c

===================================================================

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;
     }



More information about the Bf-blender-cvs mailing list