Fix error checking the search callback

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

[0]: 3f3d82cfe9
This commit is contained in:
Campbell Barton 2022-05-27 14:04:43 +10:00
parent ae39abe7f3
commit 49032a8ca5
1 changed files with 1 additions and 1 deletions

View File

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