Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_290.c
| Show First 20 Lines • Show All 1,511 Lines • ▼ Show 20 Lines | if (!DNA_struct_elem_find(fd->filesdna, "FluidModifierData", "float", "viscosity_value")) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 292, 10)) { | if (!MAIN_VERSION_ATLEAST(bmain, 292, 10)) { | ||||
| if (!DNA_struct_find(fd->filesdna, "NodeSetAlpha")) { | FOREACH_NODETREE_BEGIN (bmain, ntree, id) { | ||||
| LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) { | |||||
| if (ntree->type != NTREE_COMPOSIT) { | if (ntree->type != NTREE_COMPOSIT) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| LISTBASE_FOREACH (bNode *, node, &ntree->nodes) { | LISTBASE_FOREACH (bNode *, node, &ntree->nodes) { | ||||
| if (node->type != CMP_NODE_SETALPHA) { | if (node->type != CMP_NODE_SETALPHA) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| NodeSetAlpha *storage = MEM_callocN(sizeof(NodeSetAlpha), "NodeSetAlpha"); | NodeSetAlpha *storage = MEM_callocN(sizeof(NodeSetAlpha), "NodeSetAlpha"); | ||||
| storage->mode = CMP_NODE_SETALPHA_MODE_REPLACE_ALPHA; | storage->mode = CMP_NODE_SETALPHA_MODE_REPLACE_ALPHA; | ||||
| node->storage = storage; | node->storage = storage; | ||||
| } | } | ||||
| } | } | ||||
| } | FOREACH_NODETREE_END; | ||||
| LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | ||||
| Editing *ed = SEQ_editing_get(scene, false); | Editing *ed = SEQ_editing_get(scene, false); | ||||
| if (ed == NULL) { | if (ed == NULL) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| ed->cache_flag = (SEQ_CACHE_STORE_RAW | SEQ_CACHE_STORE_FINAL_OUT); | ed->cache_flag = (SEQ_CACHE_STORE_RAW | SEQ_CACHE_STORE_FINAL_OUT); | ||||
| do_versions_strip_cache_settings_recursive(&ed->seqbase); | do_versions_strip_cache_settings_recursive(&ed->seqbase); | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||