[Bf-blender-cvs] [49032a8ca5c] master: Fix error checking the search callback

Campbell Barton noreply at git.blender.org
Fri May 27 06:28:40 CEST 2022


Commit: 49032a8ca5c34f2fa19f7da32013b27dba514b71
Author: Campbell Barton
Date:   Fri May 27 14:04:43 2022 +1000
Branches: master
https://developer.blender.org/rB49032a8ca5c34f2fa19f7da32013b27dba514b71

Fix error checking the search callback

Error in [0] caused the `set` callback be checked as the search callback.

[0]: 3f3d82cfe9cefe4bfd9da3d283dec4a1923ec22d

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

M	source/blender/python/intern/bpy_props.c

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

diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c
index f4ebc68b5ef..1ee778ae801 100644
--- a/source/blender/python/intern/bpy_props.c
+++ b/source/blender/python/intern/bpy_props.c
@@ -4050,7 +4050,7 @@ static PyObject *BPy_StringProperty(PyObject *self, PyObject *args, PyObject *kw
   if (bpy_prop_callback_check(set_fn, "set", 2) == -1) {
     return NULL;
   }
-  if (bpy_prop_callback_check(set_fn, "search", 3) == -1) {
+  if (bpy_prop_callback_check(search_fn, "search", 3) == -1) {
     return NULL;
   }



More information about the Bf-blender-cvs mailing list