Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_270.c
| Show First 20 Lines • Show All 1,043 Lines • ▼ Show 20 Lines | if (!MAIN_VERSION_ATLEAST(main, 276, 5)) { | ||||
| /* Important to clear all non-persistent flags from older versions here, otherwise they could collide | /* Important to clear all non-persistent flags from older versions here, otherwise they could collide | ||||
| * with any new persistent flag we may add in the future. */ | * with any new persistent flag we may add in the future. */ | ||||
| a = set_listbasepointers(main, lbarray); | a = set_listbasepointers(main, lbarray); | ||||
| while (a--) { | while (a--) { | ||||
| for (ID *id = lbarray[a]->first; id; id = id->next) { | for (ID *id = lbarray[a]->first; id; id = id->next) { | ||||
| id->flag &= LIB_FAKEUSER; | id->flag &= LIB_FAKEUSER; | ||||
| } | } | ||||
| } | } | ||||
| if (!DNA_struct_elem_find(fd->filesdna, "ImageFormatData", "char", "tiff_flag")) { | |||||
| for (Scene *scene = main->scene.first; scene != NULL; scene = scene->id.next) { | |||||
| scene->r.im_format.tiff_flag = R_IMF_TIFF_FLAG_DEFLATE; | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||