Cleanup: Remove confusing double negation in RNA helper function

Much more readable that way.
This commit is contained in:
Julian Eisel 2022-03-15 13:09:41 +01:00
parent 46b35c6836
commit 7ec2c5c10b
1 changed files with 1 additions and 1 deletions

View File

@ -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)