[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46110] branches/soc-2011-tomato/source/ blender/blenloader/intern/readfile.c: Tomato: versioning patch for current files which have got curves view open

Sergey Sharybin sergey.vfx at gmail.com
Mon Apr 30 13:31:22 CEST 2012


Revision: 46110
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46110
Author:   nazgul
Date:     2012-04-30 11:31:22 +0000 (Mon, 30 Apr 2012)
Log Message:
-----------
Tomato: versioning patch for current files which have got curves view open

Modified Paths:
--------------
    branches/soc-2011-tomato/source/blender/blenloader/intern/readfile.c

Modified: branches/soc-2011-tomato/source/blender/blenloader/intern/readfile.c
===================================================================
--- branches/soc-2011-tomato/source/blender/blenloader/intern/readfile.c	2012-04-30 11:27:06 UTC (rev 46109)
+++ branches/soc-2011-tomato/source/blender/blenloader/intern/readfile.c	2012-04-30 11:31:22 UTC (rev 46110)
@@ -13389,6 +13389,40 @@
 		}
 	}
 
+	{
+		bScreen *sc;
+
+		for (sc = main->screen.first; sc; sc = sc->id.next) {
+			ScrArea *sa;
+			for (sa = sc->areabase.first; sa; sa = sa->next) {
+				SpaceLink *sl;
+
+				for (sl = sa->spacedata.first; sl; sl = sl->next) {
+					if (sl->spacetype == SPACE_CLIP) {
+						SpaceClip *sclip = (SpaceClip *)sl;
+						ARegion *ar;
+						int hide = FALSE;
+
+						for (ar = sa->regionbase.first; ar; ar = ar->next) {
+							if (ar->regiontype == RGN_TYPE_PREVIEW) {
+								if (ar->alignment != RGN_ALIGN_NONE) {
+									ar->flag |= RGN_FLAG_HIDDEN;
+									ar->v2d.flag &= ~V2D_IS_INITIALISED;
+									ar->alignment = RGN_ALIGN_NONE;
+
+									hide = TRUE;
+								}
+							}
+						}
+
+						if (hide) {
+							sclip->view = SC_VIEW_CLIP;
+						}
+					}
+				}
+			}
+		}
+	}
 	/* WATCH IT!!!: pointers from libdata have not been converted yet here! */
 	/* WATCH IT 2!: Userdef struct init has to be in editors/interface/resources.c! */
 




More information about the Bf-blender-cvs mailing list