Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2008-12-27 08:24:03 +0300
committerJoshua Leung <aligorith@gmail.com>2008-12-27 08:24:03 +0300
commitb6ac77f6026c027025dbb29f02c2a23b3d25c2d1 (patch)
treeab92098a59520cfa974afb8627bfab769da84c62 /source
parenta2369a5e01b9722eea704639f1f2e4f1ea8e8059 (diff)
2.5 - Assorted comments, and made the default size of the Action Editor more sensible.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/animation/anim_draw.c1
-rw-r--r--source/blender/editors/animation/anim_ops.c2
-rw-r--r--source/blender/editors/space_action/space_action.c7
3 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/animation/anim_draw.c b/source/blender/editors/animation/anim_draw.c
index f89a1eb96b8..e2564875e75 100644
--- a/source/blender/editors/animation/anim_draw.c
+++ b/source/blender/editors/animation/anim_draw.c
@@ -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)
diff --git a/source/blender/editors/animation/anim_ops.c b/source/blender/editors/animation/anim_ops.c
index 2a877253fa6..539ba33dc55 100644
--- a/source/blender/editors/animation/anim_ops.c
+++ b/source/blender/editors/animation/anim_ops.c
@@ -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;
}
diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c
index fec2e28fa0e..b9e7c76cbf4 100644
--- a/source/blender/editors/space_action/space_action.c
+++ b/source/blender/editors/space_action/space_action.c
@@ -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;