diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-05-02 21:33:48 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-05-02 21:33:48 +0400 |
commit | 6f3400ca521e84b1b627f2b5a53835d73e3ed2ea (patch) | |
tree | de3f9d78f38aa26b4c46098653d090352d8fb644 /source/blender/editors/space_clip/clip_graph_ops.c | |
parent | d64661b5078cd4781bd58fce6fadedac511c4132 (diff) |
Clip editor: cleanup of View menu - do not show operators which doesn't make sense in dopesheet/curve view
Diffstat (limited to 'source/blender/editors/space_clip/clip_graph_ops.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_graph_ops.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/space_clip/clip_graph_ops.c b/source/blender/editors/space_clip/clip_graph_ops.c index 03557a0b264..905aa2d11d4 100644 --- a/source/blender/editors/space_clip/clip_graph_ops.c +++ b/source/blender/editors/space_clip/clip_graph_ops.c @@ -66,11 +66,7 @@ static int ED_space_clip_graph_poll(bContext *C) if (ED_space_clip_tracking_poll(C)) { SpaceClip *sc = CTX_wm_space_clip(C); - if (sc->view == SC_VIEW_GRAPH) { - ARegion *ar = CTX_wm_region(C); - - return ar->regiontype == RGN_TYPE_PREVIEW; - } + return sc->view == SC_VIEW_GRAPH; } return FALSE; |