Blender Git Loki

Git Commits -> Revision aef08fd

Revision aef08fd by Alexander Gavrilov (master)
August 13, 2019, 14:13 (GMT)
Custom Properties: officially support int and float arrays in the UI.

In some rare cases it is convenient to store a short array value
as a custom property, e.g. a vector or color. For example, it may
be helpful when importing/exporting certain formats that support
custom or nonstandard attributes on objects.

The custom property storage already can handle arrays in order to
support properties defined via python. The only thing missing is
UI support (and some bugs), and this patch fixes that:

- Allow editing short array properties via Custom Properties panel.
- Fix a UI layout sizing bug triggered by the previous item.
- Fix a dependency graph bug with drivers using such properties.
- Make RNA_*_get_default_array code robust in case of size mismatch.
- Support custom default values for array properties, allowing
both an array and a scalar value.

Reviewers: campbellbarton

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

Commit Details:

Full Hash: aef08fda3ade2d0223b77d4c9c0dd5e9fcabe7b2
Parent Commit: 6e7ea80
Lines Changed: +189, -62

6 Modified Paths:

/release/scripts/modules/rna_prop_ui.py (+44, -7) (Diff)
/release/scripts/startup/bl_operators/wm.py (+18, -7) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc (+2, -1) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+2, -1) (Diff)
/source/blender/editors/interface/interface_layout.c (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_access.c (+120, -45) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021