[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [10967] trunk/blender/source/blender: == Action Editor - Scrolling Fix ==
Joshua Leung
aligorith at gmail.com
Tue Jun 19 13:52:14 CEST 2007
Revision: 10967
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=10967
Author: aligorith
Date: 2007-06-19 13:52:14 +0200 (Tue, 19 Jun 2007)
Log Message:
-----------
== Action Editor - Scrolling Fix ==
This fixes a problem introduced in http://lists.blender.org/pipermail/bf-blender-cvs/2007-May/010005.html
Now channels in older files will be in the view again upon loading.
Modified Paths:
--------------
trunk/blender/source/blender/blenloader/intern/readfile.c
trunk/blender/source/blender/src/space.c
Modified: trunk/blender/source/blender/blenloader/intern/readfile.c
===================================================================
--- trunk/blender/source/blender/blenloader/intern/readfile.c 2007-06-19 09:46:52 UTC (rev 10966)
+++ trunk/blender/source/blender/blenloader/intern/readfile.c 2007-06-19 11:52:14 UTC (rev 10967)
@@ -6480,9 +6480,11 @@
}
if(main->versionfile <= 244) {
Scene *sce;
+ bScreen *sc;
if(main->versionfile != 244 || main->subversionfile < 2) {
Mesh *me;
+
for(sce= main->scene.first; sce; sce= sce->id.next)
sce->r.mode |= R_SSS;
@@ -6503,7 +6505,29 @@
}
}
}
+
+ /* correct older action editors - incorrect scrolling */
+ for(sc= main->screen.first; sc; sc= sc->id.next) {
+ ScrArea *sa;
+ sa= sc->areabase.first;
+ while(sa) {
+ SpaceLink *sl;
+
+ for (sl= sa->spacedata.first; sl; sl= sl->next) {
+ if(sl->spacetype==SPACE_ACTION) {
+ SpaceAction *saction= (SpaceAction*) sl;
+
+ saction->v2d.tot.ymin= -1000.0;
+ saction->v2d.tot.ymax= 0.0;
+
+ saction->v2d.cur.ymin= -75.0;
+ saction->v2d.cur.ymax= 5.0;
+ }
+ }
+ sa = sa->next;
+ }
}
+ }
}
/* WATCH IT!!!: pointers from libdata have not been converted yet here! */
Modified: trunk/blender/source/blender/src/space.c
===================================================================
--- trunk/blender/source/blender/src/space.c 2007-06-19 09:46:52 UTC (rev 10966)
+++ trunk/blender/source/blender/src/space.c 2007-06-19 11:52:14 UTC (rev 10967)
@@ -4569,14 +4569,14 @@
saction->blockscale= 0.7;
saction->v2d.tot.xmin= 1.0;
- saction->v2d.tot.ymin= 0.0;
+ saction->v2d.tot.ymin= -1000.0;
saction->v2d.tot.xmax= 1000.0;
- saction->v2d.tot.ymax= 1000.0;
+ saction->v2d.tot.ymax= 0.0;
saction->v2d.cur.xmin= -5.0;
- saction->v2d.cur.ymin= 0.0;
+ saction->v2d.cur.ymin= -75.0;
saction->v2d.cur.xmax= 65.0;
- saction->v2d.cur.ymax= 1000.0;
+ saction->v2d.cur.ymax= 5.0;
saction->v2d.min[0]= 0.0;
saction->v2d.min[1]= 0.0;
More information about the Bf-blender-cvs
mailing list