Blender Git Loki

Git Commits -> Revision 976a0ff

Revision 976a0ff by Bastien Montagne (master)
July 13, 2020, 10:51 (GMT)
RNA code cleanup: Fix wrong usages of `rna_idproperty_check()`.

This function is more expansive than the simpler `rna_ensure_property()`
one, and should only be used when IDProperty data is actually needed.

If one only needs to ensure it has a valid PropertyRNA pointer,
`rna_ensure_property()` is much more efficient.

Also add compiler warnings when results of those functions are unused,
this should never be the case.

Commit Details:

Full Hash: 976a0ff691040fee4633910b9ab6f898d406405a
Parent Commit: f8afbb7
Lines Changed: +48, -45

3 Modified Paths:

/source/blender/makesrna/intern/rna_access_internal.h (+0, -1) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+6, -2) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+42, -42) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021