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:
authorTon Roosendaal <ton@blender.org>2004-10-14 15:58:19 +0400
committerTon Roosendaal <ton@blender.org>2004-10-14 15:58:19 +0400
commited3a7e9ed32d32a3af0f608309e90ed4b0bea15f (patch)
tree27089a03d2ee47d5ddd598ef17a6f7a16f5818eb /source/blender/src/header_nla.c
parentc8c68fba7a58e54b35b73219be3771c60e5b92d3 (diff)
Bug #1468
"Home" or "View All" in NLA window didn't set a good result in all cases. Now it uses the Scene start/end frame, which isn't correct always, but at least gives results. NLA and Action drawing is total mess! Certainly nice job for cleanup for next release.
Diffstat (limited to 'source/blender/src/header_nla.c')
-rw-r--r--source/blender/src/header_nla.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/source/blender/src/header_nla.c b/source/blender/src/header_nla.c
index 56c4ed52479..332c0bece86 100644
--- a/source/blender/src/header_nla.c
+++ b/source/blender/src/header_nla.c
@@ -82,17 +82,12 @@ void do_nla_buttons(unsigned short event)
case B_NLAHOME:
// Find X extents
v2d= &(G.snla->v2d);
-
- v2d->cur.xmin = G.scene->r.sfra;
- v2d->cur.ymin=-SCROLLB;
-// if (!G.saction->action){
- v2d->cur.xmax=G.scene->r.efra;
-// }
-// else
-// {
-// v2d->cur.xmax=calc_action_length(G.saction->action)+1;
-// }
+ /* i tried to understand nla/action drawing to reveil a 'tot' rect, impossible code! (ton) */
+ v2d->cur.xmin = G.scene->r.sfra-5;
+ v2d->cur.xmax = G.scene->r.efra+5;
+ v2d->cur.ymin= -SCROLLB;
+ v2d->cur.ymax= 5; // at least stuff is visiable then?
test_view2d(G.v2d, curarea->winx, curarea->winy);
addqueue (curarea->win, REDRAW, 1);