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>2005-10-31 00:48:25 +0300
committerTon Roosendaal <ton@blender.org>2005-10-31 00:48:25 +0300
commite96495467936372261479ea7d3c48246bb30ae9b (patch)
tree984ad3fccfd28a4f8a55599cbe54ffe9155f31de /source/blender/src/header_action.c
parent41c5328dd4efdb8d75843b118c79a165831a4762 (diff)
Fix for HOME key in Action Window. Didn't check for mapped NLA time yet.
Diffstat (limited to 'source/blender/src/header_action.c')
-rw-r--r--source/blender/src/header_action.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/header_action.c b/source/blender/src/header_action.c
index cd3628ef857..b091e0a2940 100644
--- a/source/blender/src/header_action.c
+++ b/source/blender/src/header_action.c
@@ -140,10 +140,13 @@ void do_action_buttons(unsigned short event)
float extra;
calc_action_range(G.saction->action, &G.v2d->cur.xmin, &G.v2d->cur.xmax);
+ G.v2d->cur.xmin= get_action_frame_inv(ob, G.v2d->cur.xmin);
+ G.v2d->cur.xmax= get_action_frame_inv(ob, G.v2d->cur.xmax);
+
extra= 0.05*(G.v2d->cur.xmax - G.v2d->cur.xmin);
G.v2d->cur.xmin-= extra;
G.v2d->cur.xmax+= extra;
-
+
if(G.v2d->cur.xmin==G.v2d->cur.xmax) {
G.v2d->cur.xmax= -5;
G.v2d->cur.xmax= 100;