diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-29 03:13:42 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-29 03:13:42 +0400 |
commit | 9cc638fb161c1a9795dc3351520ad16c573b4f1f (patch) | |
tree | a9b8f4a300e4bda8b9537f452be6fe88ac9d8bfa /source/blender/makesrna/intern/rna_constraint.c | |
parent | a843d7e31612a0f9c53fe7b2131bd2b873c5ce7f (diff) |
Context:
Added a system for adding a "local" context in a UI layout.
This way you can define for example within a modifier panel
all operators to get the modifier in the context.
In the layout code:
uiLayoutSetContextPointer(layout, "modifier", &ptr)
layout.set_context_pointer("modifier", md)
In the operator:
ptr = CTX_data_pointer_get(C, "modifier")
md = context.modifier
Diffstat (limited to 'source/blender/makesrna/intern/rna_constraint.c')
0 files changed, 0 insertions, 0 deletions