Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_270.c
| Show First 20 Lines • Show All 1,591 Lines • ▼ Show 20 Lines | if (!MAIN_VERSION_ATLEAST(bmain, 279, 0)) { | ||||
| for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { | for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { | ||||
| if (scene->r.im_format.exr_codec == R_IMF_EXR_CODEC_DWAB) { | if (scene->r.im_format.exr_codec == R_IMF_EXR_CODEC_DWAB) { | ||||
| scene->r.im_format.exr_codec = R_IMF_EXR_CODEC_DWAA; | scene->r.im_format.exr_codec = R_IMF_EXR_CODEC_DWAA; | ||||
| } | } | ||||
| } | } | ||||
| /* Fix related to VGroup modifiers creating named defgroup CD layers! See T51520. */ | /* Fix related to VGroup modifiers creating named defgroup CD layers! See T51520. */ | ||||
| for (Mesh *me = bmain->meshes.first; me; me = me->id.next) { | for (Mesh *me = bmain->meshes.first; me; me = me->id.next) { | ||||
| CustomData_set_layer_name(&me->vdata, CD_MDEFORMVERT, 0, ""); | /* Don't use CustomData_set_layer_name() as that can possibly set a default layer name | ||||
| * and we don't want thet here */ | |||||
| const int index = CustomData_get_layer_index(&me->vdata, CD_MDEFORMVERT); | |||||
HooglyBoogly: I'll make this `const int` when committing :) | |||||
Done Inline Actionsadded it anyway ;-) Baardaap: added it anyway ;-) | |||||
| if (index != -1) { | |||||
Done Inline ActionsShouldn't we check if the index is -1 here? HooglyBoogly: Shouldn't we check if the index is `-1` here? | |||||
Done Inline Actionswhoops! I think you're right. Baardaap: whoops! I think you're right. | |||||
| BLI_strncpy(me->vdata.layers[index].name, "", sizeof(me->vdata.layers[index].name)); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 279, 3)) { | if (!MAIN_VERSION_ATLEAST(bmain, 279, 3)) { | ||||
| if (!DNA_struct_elem_find(fd->filesdna, "FluidDomainSettings", "float", "clipping")) { | if (!DNA_struct_elem_find(fd->filesdna, "FluidDomainSettings", "float", "clipping")) { | ||||
| Object *ob; | Object *ob; | ||||
| ModifierData *md; | ModifierData *md; | ||||
| ▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines | |||||
I'll make this const int when committing :)