Blender Git Loki

Git Commits -> Revision e968017

Revision e968017 by Campbell Barton (master)
November 23, 2009, 23:17 (GMT)
- new pyrna api functions srna & prop path_to_id(), useful when setting driver target paths.
This means you can have a pose bone for eg and get the path...
pose.bones["Bone"]
uses rna internal functions, so will work for sequence strips etc.

- StructRNA.get(), used for getting ID props without exceptions...
val = C.object["someKey"]
or..
val = C.object.get("someKey", "defaultValue") # wont raise an error

- change rna property for testing if rna props are editable, test the flag rather then calling the function since the function depends on blenders state.

- fix a python exception with the ID-Property popup UI (when editing in more then 1 step)

Commit Details:

Full Hash: e968017951f8b38d4c33aac4225758687ba1e7d3
SVN Revision: 24842
Parent Commit: b7d717c
Lines Changed: +95, -3

4 Modified Paths:

/release/scripts/modules/rna_prop_ui.py (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_fcurve.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+6, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+87, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021