[Bf-blender-cvs] [9ece78f] temp_localview_split: Fix do_versions using wrong region list

Julian Eisel noreply at git.blender.org
Thu Jul 28 03:49:09 CEST 2016


Commit: 9ece78f6ef32144fa904f35ffc86f47688b278b7
Author: Julian Eisel
Date:   Thu Jul 28 03:25:59 2016 +0200
Branches: temp_localview_split
https://developer.blender.org/rB9ece78f6ef32144fa904f35ffc86f47688b278b7

Fix do_versions using wrong region list

===================================================================

M	source/blender/blenloader/intern/versioning_270.c

===================================================================

diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c
index 2302197..6779b8d 100644
--- a/source/blender/blenloader/intern/versioning_270.c
+++ b/source/blender/blenloader/intern/versioning_270.c
@@ -1278,8 +1278,9 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
 				for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) {
 					for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) {
 						if (sl->spacetype == SPACE_VIEW3D) {
+							ListBase *lb = (sl == sa->spacedata.first) ? &sa->regionbase : &sl->regionbase;
 							do_version_localview_areadata((View3D *)sl);
-							for (ARegion *ar = sa->regionbase.first; ar; ar = ar->next) {
+							for (ARegion *ar = lb->first; ar; ar = ar->next) {
 								if (ar->regiontype == RGN_TYPE_WINDOW) {
 									do_version_localview_regiondata(ar->regiondata);
 								}




More information about the Bf-blender-cvs mailing list