[Bf-blender-cvs] [41986db] soc-2016-multiview: fix last commit, solve "Motion Tracking" layout
Tianwei Shen
noreply at git.blender.org
Fri Aug 12 11:23:10 CEST 2016
Commit: 41986db9c677e22c5de13a67084bfe6cb23b06d5
Author: Tianwei Shen
Date: Fri Aug 12 17:22:06 2016 +0800
Branches: soc-2016-multiview
https://developer.blender.org/rB41986db9c677e22c5de13a67084bfe6cb23b06d5
fix last commit, solve "Motion Tracking" layout
should be using area, instead of space_clip for iteration.
===================================================================
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 1bccfb0..56929aa 100644
--- a/source/blender/blenloader/intern/versioning_270.c
+++ b/source/blender/blenloader/intern/versioning_270.c
@@ -1333,8 +1333,7 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
SpaceLink *space_link;
for (space_link = area->spacedata.first; space_link; space_link = space_link->next) {
if (space_link->spacetype == SPACE_CLIP) {
- SpaceClip *space_clip = (SpaceClip *) space_link;
- for (ARegion *ar = space_clip->regionbase.first; ar != NULL; ar = ar->next) {
+ for (ARegion *ar = area->regionbase.first; ar != NULL; ar = ar->next) {
if (ar->regiontype == RGN_TYPE_WINDOW) {
RegionSpaceClip *rsc = MEM_callocN(sizeof(RegionSpaceClip), "region data for clip");
rsc->zoom = 1.0f;
More information about the Bf-blender-cvs
mailing list