Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_280.c
| Show First 20 Lines • Show All 3,364 Lines • ▼ Show 20 Lines | if (!DNA_struct_elem_find(fd->filesdna, "bSizeLikeConstraint", "float", "power")) { | ||||
| if (ob->pose) { | if (ob->pose) { | ||||
| LISTBASE_FOREACH (bPoseChannel *, pchan, &ob->pose->chanbase) { | LISTBASE_FOREACH (bPoseChannel *, pchan, &ob->pose->chanbase) { | ||||
| do_version_constraints_copy_scale_power(&pchan->constraints); | do_version_constraints_copy_scale_power(&pchan->constraints); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) { | |||||
| for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) { | |||||
| if (ELEM(sa->spacetype, SPACE_CLIP, SPACE_GRAPH, SPACE_SEQ)) { | |||||
| for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) { | |||||
| ListBase *regionbase = (sl == sa->spacedata.first) ? &sa->regionbase : &sl->regionbase; | |||||
| ARegion *ar = NULL; | |||||
| if (sa->spacetype == SPACE_CLIP) { | |||||
| if (((SpaceClip *)sl)->view == SC_VIEW_GRAPH) { | |||||
| ar = do_versions_find_region(regionbase, RGN_TYPE_PREVIEW); | |||||
| } | |||||
| } | |||||
| else { | |||||
| ar = do_versions_find_region(regionbase, RGN_TYPE_WINDOW); | |||||
| } | |||||
| if (ar != NULL) { | |||||
| ar->v2d.scroll &= ~V2D_SCROLL_LEFT; | |||||
| ar->v2d.scroll |= V2D_SCROLL_RIGHT; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| /* Versioning code until next subversion bump goes here. */ | /* Versioning code until next subversion bump goes here. */ | ||||
| } | } | ||||
| } | } | ||||