Blender Git Loki

Git Commits -> Revision cd9ce01

Revision cd9ce01 by Bastien Montagne (master)
November 17, 2020, 11:56 (GMT)
RNA define: check and report invalid usages of ID pointers properties.

Some RNA structs, like operators or keymaps, are not allowed to have ID
pointer properties. now this check will ignore those, and report an
error message in the console.

Related to T82597.

Notes: While a bit more involved than rBf39fbb3e6046, this commit
remains fairly localized and non-intrusive.

It relies on some rather obscure and weird behaviors of our RNA code
though, a cleaner solution could be e.g. to add a tye to
`StructOrFunctionRNA`, so that we could properly 'rebuild' (re-cast) the
pointer to either `StructRNA` or `FunctionRNA` when needed in internal
code...

Commit Details:

Full Hash: cd9ce01657dcdf2a1cc866a0290ab089df799c81
Parent Commit: a25bc79
Lines Changed: +29, -9

3 Modified Paths:

/source/blender/makesrna/intern/rna_define.c (+25, -7) (Diff)
/source/blender/makesrna/RNA_define.h (+3, -1) (Diff)
/source/blender/windowmanager/intern/wm_gesture_ops.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021