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:
authorTon Roosendaal <ton@blender.org>2003-11-08 22:04:50 +0300
committerTon Roosendaal <ton@blender.org>2003-11-08 22:04:50 +0300
commit27ddef2ad5e088699e816adf765d255201d2a6b9 (patch)
tree8c5fce07c4207ac6c6dea196f54063b07afebcd9 /source
parent95791c0b816f4392d382c8a7fbcbe99b79785297 (diff)
- zooming in for action window increased 5 fold.
(bug report #679). Also corrects old files for it.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenloader/intern/readfile.c5
-rw-r--r--source/blender/src/space.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 45670fc0c4b..b4172a0d49d 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -3912,6 +3912,11 @@ static void do_versions(Main *main)
for (sl= sa->spacedata.first; sl; sl= sl->next) {
if(sl->blockscale==0.0) sl->blockscale= 0.7;
+ /* added: 5x better zoom in for action */
+ if(sl->spacetype==SPACE_ACTION) {
+ SpaceAction *sac= (SpaceAction *)sl;
+ sac->v2d.maxzoom= 50;
+ }
}
}
}
diff --git a/source/blender/src/space.c b/source/blender/src/space.c
index 94e887688f9..daa18412227 100644
--- a/source/blender/src/space.c
+++ b/source/blender/src/space.c
@@ -3000,8 +3000,8 @@ void init_actionspace(ScrArea *sa)
saction->v2d.max[0]= 32000.0;
saction->v2d.max[1]= 1000.0;
- saction->v2d.minzoom= 0.01f;
- saction->v2d.maxzoom= 10;
+ saction->v2d.minzoom= 0.01;
+ saction->v2d.maxzoom= 50;
saction->v2d.scroll= R_SCROLL+B_SCROLL;
saction->v2d.keepaspect= 0;