Blender Git Loki

Git Commits -> Revision c93750d

Revision c93750d by Bastien Montagne (master)
August 26, 2013, 16:08 (GMT)
RNA fixes regarding dynamic array properties in functions parameters (reviewed by Brecht, thanks!):

* It was not clear that RNA_parameter_length_get() & co only affected dynamic properties, renamed them to RNA_parameter_dynamic_length_get() and such.

* Fixed RNA_function_find_parameter(), we can't use BLI_findstring() here, need to call RNA_property_identifier()!

* Fixed RNA_parameter_get() and RNA_parameter_set(), which were completely wrong for dynamic properties.

* Fixed RNA_parameter_dynamic_length_get/set_data(), they did not check the property was actually a dynamic one and were using again ugly blackmagic casting intead of ParameterDynAlloc structure!

* makesrna was still using an ugly hackish (and perhaps not always working) code when handling dynamic parameters, now synchronized with RNA_parameter_dynamic_length_get_data and RNA_parameter_get code.

Commit Details:

Full Hash: c93750d893e25a9f2ffd98222aa63cc3852f8a37
SVN Revision: 59531
Parent Commit: f157753
Lines Changed: +71, -21

3 Modified Paths:

/source/blender/makesrna/intern/makesrna.c (+4, -3) (Diff)
/source/blender/makesrna/intern/rna_access.c (+62, -14) (Diff)
/source/blender/makesrna/RNA_access.h (+5, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021