Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-08-31 05:45:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-31 06:00:31 +0300
commitc758b87c5e1dbad174779d69340ad1983a94198c (patch)
tree57479c5458f8c45d72c353de02d306374a231e0c /source/blender/python/intern/bpy_interface.c
parentea575744b8c9badb7f9b56fba625adb059ff3b5c (diff)
Cleanup: add CTX_data_pointer_set_ptr & CTX_data_list_add_ptr
Many callers expanded a PointerRNA argument, so add a version of these functions that takes a PointerRNA.
Diffstat (limited to 'source/blender/python/intern/bpy_interface.c')
-rw-r--r--source/blender/python/intern/bpy_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c
index 1a308414bc3..68731a91dc9 100644
--- a/source/blender/python/intern/bpy_interface.c
+++ b/source/blender/python/intern/bpy_interface.c
@@ -706,7 +706,7 @@ int BPY_context_member_get(bContext *C, const char *member, bContextDataResult *
ptr = &(((BPy_StructRNA *)item)->ptr);
// result->ptr = ((BPy_StructRNA *)item)->ptr;
- CTX_data_pointer_set(result, ptr->owner_id, ptr->type, ptr->data);
+ CTX_data_pointer_set_ptr(result, ptr);
CTX_data_type_set(result, CTX_DATA_TYPE_POINTER);
done = true;
}
@@ -732,7 +732,7 @@ int BPY_context_member_get(bContext *C, const char *member, bContextDataResult *
BLI_addtail(&result->list, link);
#endif
ptr = &(((BPy_StructRNA *)list_item)->ptr);
- CTX_data_list_add(result, ptr->owner_id, ptr->type, ptr->data);
+ CTX_data_list_add_ptr(result, ptr);
}
else {
CLOG_INFO(BPY_LOG_CONTEXT,