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:
authorBastien Montagne <bastien@blender.org>2020-12-29 14:11:18 +0300
committerBastien Montagne <bastien@blender.org>2020-12-29 14:11:18 +0300
commite22a36e80a1e2723e8d9f2b9a39b5d61d6b4b6ec (patch)
tree0767916abba681364fa5a9bde3e0d09aefc5725f
parent5428ad40e8873664c61a65f73ca16f9d3c71cd74 (diff)
Cleanup: Use proper `RNA_pointer_is_null` helper.
Followup to rB7f3601e70dd and rBad63d2f60e2.
-rw-r--r--source/blender/makesrna/intern/rna_access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 9411acaef64..0479c5d1eed 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -5730,7 +5730,7 @@ static char *rna_idp_path(PointerRNA *ptr,
if (iter->type == IDP_GROUP) {
if (prop->type == PROP_POINTER) {
PointerRNA child_ptr = RNA_property_pointer_get(ptr, prop);
- BLI_assert(child_ptr.type != NULL);
+ BLI_assert(!RNA_pointer_is_null(&child_ptr));
link.name = iter->name;
link.index = -1;
if ((path = rna_idp_path(&child_ptr, iter, needle, &link))) {
@@ -5752,7 +5752,7 @@ static char *rna_idp_path(PointerRNA *ptr,
for (j = 0; j < iter->len; j++, array++) {
PointerRNA child_ptr;
if (RNA_property_collection_lookup_int(ptr, prop, j, &child_ptr)) {
- BLI_assert(child_ptr.type != NULL);
+ BLI_assert(!RNA_pointer_is_null(&child_ptr));
link.index = j;
if ((path = rna_idp_path(&child_ptr, array, needle, &link))) {
break;