diff options
author | Campbell Barton <campbell@blender.org> | 2022-05-27 07:04:43 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-27 07:28:13 +0300 |
commit | 49032a8ca5c34f2fa19f7da32013b27dba514b71 (patch) | |
tree | b4e927f4a90eba17ada7764ce3a35e76115dff7f /source/blender/python | |
parent | ae39abe7f3c5fe93d93db16f6a5217f625bbe749 (diff) |
Fix error checking the search callback
Error in [0] caused the `set` callback be checked as the search callback.
[0]: 3f3d82cfe9cefe4bfd9da3d283dec4a1923ec22d
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_props.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |