[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18117] branches/blender2.5/blender/source /blender/blenloader/intern/readfile.c: 2.5 - Version patch for reading old .blend files (for some animsys2 changes) was being done for the wrong sub-version.

Joshua Leung aligorith at gmail.com
Sun Dec 28 12:08:58 CET 2008


Revision: 18117
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18117
Author:   aligorith
Date:     2008-12-28 12:08:56 +0100 (Sun, 28 Dec 2008)

Log Message:
-----------
2.5 - Version patch for reading old .blend files (for some animsys2 changes) was being done for the wrong sub-version.

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/blenloader/intern/readfile.c

Modified: branches/blender2.5/blender/source/blender/blenloader/intern/readfile.c
===================================================================
--- branches/blender2.5/blender/source/blender/blenloader/intern/readfile.c	2008-12-28 10:49:58 UTC (rev 18116)
+++ branches/blender2.5/blender/source/blender/blenloader/intern/readfile.c	2008-12-28 11:08:56 UTC (rev 18117)
@@ -5124,6 +5124,7 @@
 				ar->regiontype= RGN_TYPE_CHANNELS;
 				ar->alignment= RGN_ALIGN_LEFT;
 				ar->v2d.scroll= V2D_SCROLL_BOTTOM;
+				ar->v2d.flag = V2D_VIEWSYNC_AREA_VERTICAL;
 				break;
 		}
 	}
@@ -8299,15 +8300,7 @@
 
 	if (main->versionfile < 248 || (main->versionfile == 248 && main->subversionfile < 2)) {
 		Scene *sce;
-		Ipo *ipo;
-		IpoCurve *icu;
 		
-		/* fix IPO-curves to work with new interpolation options */
-		for (ipo=main->ipo.first; ipo; ipo= ipo->id.next) {
-			for (icu= ipo->curve.first; icu; icu= icu->next) 
-				set_interpolation_ipocurve(icu, icu->ipo);
-		}
-		
 		/* Note, these will need to be added for painting */
 		for (sce= main->scene.first; sce; sce= sce->id.next) {
 			sce->toolsettings->imapaint.seam_bleed = 2;
@@ -8316,7 +8309,15 @@
 	}
 	if (main->versionfile < 248 || (main->versionfile == 248 && main->subversionfile < 3)) {
 		bScreen *sc;
+		Ipo *ipo;
+		IpoCurve *icu;
 		
+		/* fix IPO-curves to work with new interpolation options */
+		for (ipo=main->ipo.first; ipo; ipo= ipo->id.next) {
+			for (icu= ipo->curve.first; icu; icu= icu->next) 
+				set_interpolation_ipocurve(icu, icu->ipo);
+		}
+		
 		/* adjust default settings for Animation Editors */
 		for (sc= main->screen.first; sc; sc= sc->id.next) {
 			ScrArea *sa;





More information about the Bf-blender-cvs mailing list