diff options
author | Julian Eisel <julian@blender.org> | 2022-03-15 15:09:41 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-03-15 15:11:41 +0300 |
commit | 7ec2c5c10bc214707d437200481a90336831e902 (patch) | |
tree | 79468c1b83cdeefd23d8127f17e1bc93b6501bd1 /source/blender/makesrna | |
parent | 46b35c683688737c6ced48917e6fffb53bbdfe3f (diff) |
Cleanup: Remove confusing double negation in RNA helper function
Much more readable that way.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 943b2fccbb7..b4617321f44 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -160,7 +160,7 @@ void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr) bool RNA_pointer_is_null(const PointerRNA *ptr) { - return !((ptr->data != NULL) && (ptr->owner_id != NULL) && (ptr->type != NULL)); + return (ptr->data == NULL) || (ptr->owner_id == NULL) || (ptr->type == NULL); } static void rna_pointer_inherit_id(StructRNA *type, PointerRNA *parent, PointerRNA *ptr) |