Clip editor: cleanup of View menu - do not show operators which doesn't make sense in dopesheet/curve view

This commit is contained in:
2012-05-02 17:33:48 +00:00
parent d64661b507
commit 6f3400ca52
5 changed files with 39 additions and 28 deletions

View File

@@ -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;