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
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2008-12-22 03:11:33 +0300
committerJoshua Leung <aligorith@gmail.com>2008-12-22 03:11:33 +0300
commit1c3e358fd89e8874358e8df7a6a0b43b9f6725b4 (patch)
treebe8dd9a1718e17bb3d8f164460a432ee36656983 /source/blender/editors/space_action/space_action.c
parent48a93c3ea6dcc55ec8a5a4f252c4334910c589a3 (diff)
View2D - View alignment flags are now taken into account in curRect_Validate()
Alignment flags are now checked for after keeptot settings, as these flags are of even greater importance. This is necessary for the syncing of the channels region and timeline areas in Action Editor (and later NLA Editor).
Diffstat (limited to 'source/blender/editors/space_action/space_action.c')
-rw-r--r--source/blender/editors/space_action/space_action.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c
index 93e5ee0e16a..af43f65af82 100644
--- a/source/blender/editors/space_action/space_action.c
+++ b/source/blender/editors/space_action/space_action.c
@@ -103,9 +103,9 @@ static SpaceLink *action_new(void)
ar->v2d.tot.ymax= 0.0f;
ar->v2d.cur.xmin= -2.0f;
- ar->v2d.cur.ymin= -200.0f;
+ ar->v2d.cur.ymin= -2000.0f; /* ideally this would be the size of the region, but since we don't know that, set for 1:1 */
ar->v2d.cur.xmax= 100.0f;
- ar->v2d.cur.ymax= -20.0f;
+ ar->v2d.cur.ymax= 0.0f;
ar->v2d.min[0]= 0.0f;
ar->v2d.min[1]= 0.0f;