Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_290.c
| Show First 20 Lines • Show All 1,484 Lines • ▼ Show 20 Lines | void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain) | ||||
| * \note Be sure to check when bumping the version: | * \note Be sure to check when bumping the version: | ||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | * - "versioning_userdef.c", #blo_do_versions_userdef | ||||
| * - "versioning_userdef.c", #do_versions_theme | * - "versioning_userdef.c", #do_versions_theme | ||||
| * | * | ||||
| * \note Keep this message at the bottom of the function. | * \note Keep this message at the bottom of the function. | ||||
| */ | */ | ||||
| { | { | ||||
| /* Keep this block, even when empty. */ | /* Keep this block, even when empty. */ | ||||
| if (!DNA_struct_find(fd->filesdna, "NodeSetAlpha")) { | |||||
| LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | |||||
| bNodeTree *nodetree = scene->nodetree; | |||||
| if (nodetree == NULL) { | |||||
| continue; | |||||
| } | |||||
| LISTBASE_FOREACH (bNode *, node, &nodetree->nodes) { | |||||
| if (node->type != CMP_NODE_SETALPHA) { | |||||
| continue; | |||||
| } | |||||
| NodeSetAlpha *storage = MEM_callocN(sizeof(NodeSetAlpha), "NodeSetAlpha"); | |||||
| storage->mode = CMP_NODE_SETALPHA_MODE_REPLACE_ALPHA; | |||||
| node->storage = storage; | |||||
| } | |||||
| } | |||||
| } | |||||
| } | } | ||||
| } | } | ||||