Cleanup: Remove confusing double negation in RNA helper function
Much more readable that way.
This commit is contained in:
parent
46b35c6836
commit
7ec2c5c10b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue