Blender Git Loki

Git Commits -> Revision 5336e68

Revision 5336e68 by Bastien Montagne (master)
August 5, 2014, 17:21 (GMT)
Fix T41062: "copy to selected" doens't work for all attributes.

The issue was that some properties are no direct children of the struct we support in 'copy to selected'
(RNA_Sequence in this case). Since we can't use the ID of sequences here (it's the scene, while we need
a sequence level of control), we had to add a new API helper to RNA path, which takes a RNA type
and return a path relative to the closest ancester of that type.

This way, we get a path from the RNA_Sequence, and can easily apply it to all other valid sequences
to copy the property.

Review, suggestions and edits by Campbell Barton, thanks!

Commit Details:

Full Hash: 5336e68e110252b1da18bf8749b62b6a9f01c10a
Parent Commit: b37b317
Lines Changed: +170, -53

3 Modified Paths:

/source/blender/editors/interface/interface_ops.c (+64, -42) (Diff)
/source/blender/makesrna/intern/rna_access.c (+93, -11) (Diff)
/source/blender/makesrna/RNA_access.h (+13, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021