diff options
author | Thomas Dinges <blender@dingto.org> | 2009-08-15 23:40:09 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-08-15 23:40:09 +0400 |
commit | 0ce5163cc0aa32df5450752da9056059a88f1fd5 (patch) | |
tree | a5aa62f012dba91b3d78935f608a06c1b69b4ef6 /source/blender/blenkernel/BKE_context.h | |
parent | ca906df5ccdd0d1b0a600f073b5bad5251d42e07 (diff) |
2.5 3D_View:
Patch [#19031] (2.5) python menus for the view3d header
by Lorenzo Pierfederici (lento). Thanks!
* Added CTX_data_mode_string() to find out in which mode we're in.
* Added some "select" menus as a test.
This patch makes it basically possible to wrap the 3D View menus to python.
Diffstat (limited to 'source/blender/blenkernel/BKE_context.h')
-rw-r--r-- | source/blender/blenkernel/BKE_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_context.h b/source/blender/blenkernel/BKE_context.h index e47ad969b91..81dea204dd0 100644 --- a/source/blender/blenkernel/BKE_context.h +++ b/source/blender/blenkernel/BKE_context.h @@ -191,6 +191,8 @@ struct Main *CTX_data_main(const bContext *C); struct Scene *CTX_data_scene(const bContext *C); struct ToolSettings *CTX_data_tool_settings(const bContext *C); +char *CTX_data_mode_string(const bContext *C); + void CTX_data_main_set(bContext *C, struct Main *bmain); void CTX_data_scene_set(bContext *C, struct Scene *bmain); |