minor transform change to stay in sync with mask branch

This commit is contained in:
2012-05-30 07:38:33 +00:00
parent d4c7f2d53d
commit 22982e9351
2 changed files with 6 additions and 1 deletions

View File

@@ -1594,7 +1594,6 @@ int initTransform(bContext *C, TransInfo *t, wmOperator *op, wmEvent *event, int
else if (t->spacetype == SPACE_CLIP) {
unit_m3(t->spacemtx);
t->draw_handle_view = ED_region_draw_cb_activate(t->ar->type, drawTransformView, t, REGION_DRAW_POST_VIEW);
t->options |= CTX_MOVIECLIP;
}
else
unit_m3(t->spacemtx);

View File

@@ -1106,6 +1106,12 @@ int initTransInfo(bContext *C, TransInfo *t, wmOperator *op, wmEvent *event)
t->view = &ar->v2d;
t->around = sipo->around;
}
else if (t->spacetype==SPACE_CLIP) {
SpaceClip *sclip = sa->spacedata.first;
if (ED_space_clip_show_trackedit(sclip))
t->options |= CTX_MOVIECLIP;
}
else {
if (ar) {
// XXX for now, get View2D from the active region