Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_legacy.c
| Show First 20 Lines • Show All 1,655 Lines • ▼ Show 20 Lines | |||||
| if (main->versionfile <= 242) { | if (main->versionfile <= 242) { | ||||
| Scene *sce; | Scene *sce; | ||||
| bScreen *sc; | bScreen *sc; | ||||
| Object *ob; | Object *ob; | ||||
| Curve *cu; | Curve *cu; | ||||
| Material *ma; | Material *ma; | ||||
| Mesh *me; | Mesh *me; | ||||
| Group *group; | Collection *collection; | ||||
| Nurb *nu; | Nurb *nu; | ||||
| BezTriple *bezt; | BezTriple *bezt; | ||||
| BPoint *bp; | BPoint *bp; | ||||
| bNodeTree *ntree; | bNodeTree *ntree; | ||||
| int a; | int a; | ||||
| for (sc = main->screen.first; sc; sc = sc->id.next) { | for (sc = main->screen.first; sc; sc = sc->id.next) { | ||||
| ScrArea *sa; | ScrArea *sa; | ||||
| ▲ Show 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | if (main->versionfile <= 242) { | ||||
| for (ma = main->mat.first; ma; ma = ma->id.next) { | for (ma = main->mat.first; ma; ma = ma->id.next) { | ||||
| if (ma->nodetree) | if (ma->nodetree) | ||||
| ntree_version_242(ma->nodetree); | ntree_version_242(ma->nodetree); | ||||
| } | } | ||||
| for (me = main->mesh.first; me; me = me->id.next) | for (me = main->mesh.first; me; me = me->id.next) | ||||
| customdata_version_242(me); | customdata_version_242(me); | ||||
| for (group = main->group.first; group; group = group->id.next) | for (collection = main->collection.first; collection; collection = collection->id.next) | ||||
| if (group->layer == 0) | if (collection->layer == 0) | ||||
| group->layer = (1 << 20) - 1; | collection->layer = (1 << 20) - 1; | ||||
| /* now, subversion control! */ | /* now, subversion control! */ | ||||
| if (main->subversionfile < 3) { | if (main->subversionfile < 3) { | ||||
| Image *ima; | Image *ima; | ||||
| Tex *tex; | Tex *tex; | ||||
| /* Image refactor initialize */ | /* Image refactor initialize */ | ||||
| for (ima = main->image.first; ima; ima = ima->id.next) { | for (ima = main->image.first; ima; ima = ima->id.next) { | ||||
| ▲ Show 20 Lines • Show All 634 Lines • ▼ Show 20 Lines | if ((main->versionfile < 245) || (main->versionfile == 245 && main->subversionfile < 15)) { | ||||
| idproperties_fix_group_lengths(main->camera); | idproperties_fix_group_lengths(main->camera); | ||||
| idproperties_fix_group_lengths(main->ipo); | idproperties_fix_group_lengths(main->ipo); | ||||
| idproperties_fix_group_lengths(main->key); | idproperties_fix_group_lengths(main->key); | ||||
| idproperties_fix_group_lengths(main->world); | idproperties_fix_group_lengths(main->world); | ||||
| idproperties_fix_group_lengths(main->screen); | idproperties_fix_group_lengths(main->screen); | ||||
| idproperties_fix_group_lengths(main->vfont); | idproperties_fix_group_lengths(main->vfont); | ||||
| idproperties_fix_group_lengths(main->text); | idproperties_fix_group_lengths(main->text); | ||||
| idproperties_fix_group_lengths(main->sound); | idproperties_fix_group_lengths(main->sound); | ||||
| idproperties_fix_group_lengths(main->group); | idproperties_fix_group_lengths(main->collection); | ||||
| idproperties_fix_group_lengths(main->armature); | idproperties_fix_group_lengths(main->armature); | ||||
| idproperties_fix_group_lengths(main->action); | idproperties_fix_group_lengths(main->action); | ||||
| idproperties_fix_group_lengths(main->nodetree); | idproperties_fix_group_lengths(main->nodetree); | ||||
| idproperties_fix_group_lengths(main->brush); | idproperties_fix_group_lengths(main->brush); | ||||
| idproperties_fix_group_lengths(main->particle); | idproperties_fix_group_lengths(main->particle); | ||||
| } | } | ||||
| /* convert fluids to modifier */ | /* convert fluids to modifier */ | ||||
| ▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines | |||||