Cleanup: return a boolean from BPY_context_member_get, check it's result

This commit is contained in:
Campbell Barton
2025-06-26 14:27:17 +10:00
parent 06dfab455a
commit c71b314565
3 changed files with 16 additions and 12 deletions

View File

@@ -727,7 +727,7 @@ void BPY_modules_load_user(bContext *C)
bpy_context_clear(C, &gilstate);
}
int BPY_context_member_get(bContext *C, const char *member, bContextDataResult *result)
bool BPY_context_member_get(bContext *C, const char *member, bContextDataResult *result)
{
PyGILState_STATE gilstate;
const bool use_gil = !PyC_IsInterpreterActive();