Blender Git Commit Log

Git Commits -> Revision 9cc638f

Revision 9cc638f by Brecht Van Lommel (master)
May 28, 2009, 23:13 (GMT)
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

Commit Details:

Full Hash: 9cc638fb161c1a9795dc3351520ad16c573b4f1f
SVN Revision: 20479
Parent Commit: a843d7e
Lines Changed: +129, -8

7 Modified Paths:

/source/blender/blenkernel/BKE_context.h (+22, -0) (Diff)
/source/blender/blenkernel/intern/context.c (+82, -5) (Diff)
/source/blender/editors/include/UI_interface.h (+2, -1) (Diff)
/source/blender/editors/interface/interface.c (+2, -0) (Diff)
/source/blender/editors/interface/interface_api.c (+7, -0) (Diff)
/source/blender/editors/interface/interface_intern.h (+5, -0) (Diff)
/source/blender/editors/interface/interface_layout.c (+9, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021