Makesrna: Fix function prototypes for struct used RNA_def_struct_sdna_from
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 27 Mar 2015 13:44:11 +0000 (18:44 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 27 Mar 2015 13:44:11 +0000 (18:44 +0500)
commit74e8e14cced7698748c5e4018347438748c499ab
treee88e3f500bb2928261f901bb883b9c5850e192fb
parent1c2f1ff7251ba563e98b617aa6417c832cb7159a
Makesrna: Fix function prototypes for struct used RNA_def_struct_sdna_from

Previously makesrna would have generated code expecting DNA structure from
RNA_def_struct_sdna_from() to be passed to it. This was wrong because actual
PointerRNA points to a "parent" structure, making it impossible to add
functions to certain RNA structures.

It so far never needed and we didn't notice this issue, but it's needed for
some ongoing development now.
source/blender/makesrna/intern/makesrna.c