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:
authorJulian Eisel <julian@blender.org>2022-03-15 15:09:41 +0300
committerJulian Eisel <julian@blender.org>2022-03-15 15:11:41 +0300
commit7ec2c5c10bc214707d437200481a90336831e902 (patch)
tree79468c1b83cdeefd23d8127f17e1bc93b6501bd1
parent46b35c683688737c6ced48917e6fffb53bbdfe3f (diff)
Cleanup: Remove confusing double negation in RNA helper function
Much more readable that way.
-rw-r--r--source/blender/makesrna/intern/rna_access.c2
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)