diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-11 18:38:16 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-11 18:38:16 +0300 |
commit | d39b43aa2010c9b5262428b4afedebd1686307ba (patch) | |
tree | 92fb3ad78b42bb9c858af84c7887e850bc68f65d /source/blender/editors/include/UI_view2d.h | |
parent | 045306ae499661d585bf989f7b6504caadd2a219 (diff) |
2.5
TimeLine window pulldowns work sorta (for the options that were coded :)
Still trying to bring back code without recoding uiDefButs. In future these
will get directly operator stuff linked. For time being made a simple
operator call function, like:
WM_operator_call(C, "ED_MARKER_OT_add");
and for forcing operator to run in the main region-window:
WM_operator_call_rwin(C, "ED_MARKER_OT_add");
These calls also work for modal operators, like marker grab in this case.
Diffstat (limited to 'source/blender/editors/include/UI_view2d.h')
-rw-r--r-- | source/blender/editors/include/UI_view2d.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index 757f38aba1e..ea47150f50e 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -115,6 +115,7 @@ void UI_view2d_to_region_no_clip(struct View2D *v2d, float x, float y, short *re /* utilities */ struct View2D *UI_view2d_fromcontext(const struct bContext *C); +struct View2D *UI_view2d_fromcontext_rwin(const struct bContext *C); void UI_view2d_getscale(struct View2D *v2d, float *x, float *y); |