- zooming in for action window increased 5 fold.
authorTon Roosendaal <ton@blender.org>
Sat, 8 Nov 2003 19:04:50 +0000 (19:04 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 8 Nov 2003 19:04:50 +0000 (19:04 +0000)
  (bug report #679). Also corrects old files for it.

source/blender/blenloader/intern/readfile.c
source/blender/src/space.c

index 45670fc0c4bb514a06a83b4d0f202dee08084f7e..b4172a0d49d4d57a07eeae0f1938972022aa15d5 100644 (file)
@@ -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;
+                                       }
                                }
                        }
                }
index 94e887688f9e6dedfdd9b2c62442d848b5121281..daa18412227b67b76daa5ffbe07d4f303c260450 100644 (file)
@@ -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;