2.5 - Assorted comments, and made the default size of the Action Editor more sensible.
This commit is contained in:
@@ -153,6 +153,7 @@ void ANIM_draw_cfra (const bContext *C, View2D *v2d, short flag)
|
||||
|
||||
/* *************************************************** */
|
||||
/* PREVIEW RANGE 'CURTAINS' */
|
||||
/* Note: 'Preview Range' tools are defined in anim_ops.c */
|
||||
|
||||
/* Draw preview range 'curtains' for highlighting where the animation data is */
|
||||
void ANIM_draw_previewrange (const bContext *C, View2D *v2d)
|
||||
|
@@ -247,8 +247,6 @@ static int previewrange_define_exec(bContext *C, wmOperator *op)
|
||||
scene->r.psfra= (int)floor(sfra + 0.5f);
|
||||
scene->r.pefra= (int)floor(efra + 0.5f);
|
||||
|
||||
//BIF_undo_push("Set Preview Range");
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
|
@@ -68,8 +68,9 @@
|
||||
|
||||
static SpaceLink *action_new(const bContext *C)
|
||||
{
|
||||
ARegion *ar;
|
||||
ScrArea *sa= CTX_wm_area(C);
|
||||
SpaceAction *saction;
|
||||
ARegion *ar;
|
||||
|
||||
saction= MEM_callocN(sizeof(SpaceAction), "initaction");
|
||||
saction->spacetype= SPACE_ACTION;
|
||||
@@ -100,12 +101,12 @@ static SpaceLink *action_new(const bContext *C)
|
||||
ar->regiontype= RGN_TYPE_WINDOW;
|
||||
|
||||
ar->v2d.tot.xmin= -2.0f;
|
||||
ar->v2d.tot.ymin= -2000.0f;
|
||||
ar->v2d.tot.ymin= (float)(-sa->winy);
|
||||
ar->v2d.tot.xmax= 100.0f;
|
||||
ar->v2d.tot.ymax= 0.0f;
|
||||
|
||||
ar->v2d.cur.xmin= -2.0f;
|
||||
ar->v2d.cur.ymin= -2000.0f; /* ideally this would be the size of the region */
|
||||
ar->v2d.cur.ymin= (float)(-sa->winy);
|
||||
ar->v2d.cur.xmax= 100.0f;
|
||||
ar->v2d.cur.ymax= 0.0f;
|
||||
|
||||
|
Reference in New Issue
Block a user