Blender Git Loki

Git Commits -> Revision e6276e1

Revision e6276e1 by Alexander Gavrilov (master)
November 15, 2018, 16:42 (GMT)
RNA: always allow fallback from defaultarray to defaultvalue.

The python getters for the array already allowed that, but not the
actual C RNA access functions. This is inconsistent, so implement
the fallback in all cases. Now if by default the property should
contain the same value in all positions, it is not necessary to
actually use an array.

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D3940

Commit Details:

Full Hash: e6276e1748912183ca87df21f0efdeefd77639f7
Parent Commit: 8610b57
Lines Changed: +59, -48

2 Modified Paths:

/source/blender/makesrna/intern/rna_access.c (+51, -21) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+8, -27) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021