From 49032a8ca5c34f2fa19f7da32013b27dba514b71 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 27 May 2022 14:04:43 +1000 Subject: [PATCH] Fix error checking the search callback Error in [0] caused the `set` callback be checked as the search callback. [0]: 3f3d82cfe9cefe4bfd9da3d283dec4a1923ec22d --- source/blender/python/intern/bpy_props.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }