Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.c
| Show First 20 Lines • Show All 499 Lines • ▼ Show 20 Lines | void do_versions_after_linking_300(Main *bmain, ReportList *UNUSED(reports)) | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 300, 13)) { | if (!MAIN_VERSION_ATLEAST(bmain, 300, 13)) { | ||||
| LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | ||||
| if (scene->ed != NULL) { | if (scene->ed != NULL) { | ||||
| do_versions_sequencer_speed_effect_recursive(scene, &scene->ed->seqbase); | do_versions_sequencer_speed_effect_recursive(scene, &scene->ed->seqbase); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** | if (!MAIN_VERSION_ATLEAST(bmain, 300, 26)) { | ||||
| * Versioning code until next subversion bump goes here. | |||||
| * | |||||
| * \note Be sure to check when bumping the version: | |||||
| * - #blo_do_versions_300 in this file. | |||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | |||||
| * - "versioning_userdef.c", #do_versions_theme | |||||
| * | |||||
| * \note Keep this message at the bottom of the function. | |||||
| */ | |||||
| { | |||||
| /* Keep this block, even when empty. */ | |||||
| do_versions_idproperty_ui_data(bmain); | |||||
| LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | ||||
| ToolSettings *tool_settings = scene->toolsettings; | ToolSettings *tool_settings = scene->toolsettings; | ||||
| ImagePaintSettings *imapaint = &tool_settings->imapaint; | ImagePaintSettings *imapaint = &tool_settings->imapaint; | ||||
| if (imapaint->canvas != NULL && | if (imapaint->canvas != NULL && | ||||
| ELEM(imapaint->canvas->type, IMA_TYPE_R_RESULT, IMA_TYPE_COMPOSITE)) { | ELEM(imapaint->canvas->type, IMA_TYPE_R_RESULT, IMA_TYPE_COMPOSITE)) { | ||||
| imapaint->canvas = NULL; | imapaint->canvas = NULL; | ||||
| } | } | ||||
| if (imapaint->stencil != NULL && | if (imapaint->stencil != NULL && | ||||
| ELEM(imapaint->stencil->type, IMA_TYPE_R_RESULT, IMA_TYPE_COMPOSITE)) { | ELEM(imapaint->stencil->type, IMA_TYPE_R_RESULT, IMA_TYPE_COMPOSITE)) { | ||||
| imapaint->stencil = NULL; | imapaint->stencil = NULL; | ||||
| } | } | ||||
| if (imapaint->clone != NULL && | if (imapaint->clone != NULL && | ||||
| ELEM(imapaint->clone->type, IMA_TYPE_R_RESULT, IMA_TYPE_COMPOSITE)) { | ELEM(imapaint->clone->type, IMA_TYPE_R_RESULT, IMA_TYPE_COMPOSITE)) { | ||||
| imapaint->clone = NULL; | imapaint->clone = NULL; | ||||
| } | } | ||||
| } | } | ||||
| LISTBASE_FOREACH (Brush *, brush, &bmain->brushes) { | LISTBASE_FOREACH (Brush *, brush, &bmain->brushes) { | ||||
| if (brush->clone.image != NULL && | if (brush->clone.image != NULL && | ||||
| ELEM(brush->clone.image->type, IMA_TYPE_R_RESULT, IMA_TYPE_COMPOSITE)) { | ELEM(brush->clone.image->type, IMA_TYPE_R_RESULT, IMA_TYPE_COMPOSITE)) { | ||||
| brush->clone.image = NULL; | brush->clone.image = NULL; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** | |||||
| * Versioning code until next subversion bump goes here. | |||||
| * | |||||
| * \note Be sure to check when bumping the version: | |||||
| * - #blo_do_versions_300 in this file. | |||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | |||||
| * - "versioning_userdef.c", #do_versions_theme | |||||
| * | |||||
| * \note Keep this message at the bottom of the function. | |||||
| */ | |||||
| { | |||||
| /* Keep this block, even when empty. */ | |||||
| do_versions_idproperty_ui_data(bmain); | |||||
| } | |||||
| } | } | ||||
| static void version_switch_node_input_prefix(Main *bmain) | static void version_switch_node_input_prefix(Main *bmain) | ||||
| { | { | ||||
| FOREACH_NODETREE_BEGIN (bmain, ntree, id) { | FOREACH_NODETREE_BEGIN (bmain, ntree, id) { | ||||
| if (ntree->type == NTREE_GEOMETRY) { | if (ntree->type == NTREE_GEOMETRY) { | ||||
| LISTBASE_FOREACH (bNode *, node, &ntree->nodes) { | LISTBASE_FOREACH (bNode *, node, &ntree->nodes) { | ||||
| if (node->type == GEO_NODE_SWITCH) { | if (node->type == GEO_NODE_SWITCH) { | ||||
| ▲ Show 20 Lines • Show All 895 Lines • ▼ Show 20 Lines | enum { | ||||
| R_EXR_TILE_FILE = (1 << 10), | R_EXR_TILE_FILE = (1 << 10), | ||||
| R_FULL_SAMPLE = (1 << 15), | R_FULL_SAMPLE = (1 << 15), | ||||
| }; | }; | ||||
| LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | LISTBASE_FOREACH (Scene *, scene, &bmain->scenes) { | ||||
| scene->r.scemode &= ~(R_EXR_TILE_FILE | R_FULL_SAMPLE); | scene->r.scemode &= ~(R_EXR_TILE_FILE | R_FULL_SAMPLE); | ||||
| } | } | ||||
| } | } | ||||
| /** | if (!MAIN_VERSION_ATLEAST(bmain, 300, 26)) { | ||||
| * Versioning code until next subversion bump goes here. | |||||
| * | |||||
| * \note Be sure to check when bumping the version: | |||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | |||||
| * - "versioning_userdef.c", #do_versions_theme | |||||
| * | |||||
| * \note Keep this message at the bottom of the function. | |||||
| */ | |||||
| { | |||||
| /* Keep this block, even when empty. */ | |||||
| LISTBASE_FOREACH (Object *, ob, &bmain->objects) { | LISTBASE_FOREACH (Object *, ob, &bmain->objects) { | ||||
| LISTBASE_FOREACH (ModifierData *, md, &ob->modifiers) { | LISTBASE_FOREACH (ModifierData *, md, &ob->modifiers) { | ||||
| if (md->type == eModifierType_Nodes) { | if (md->type == eModifierType_Nodes) { | ||||
| version_geometry_nodes_add_attribute_input_settings((NodesModifierData *)md); | version_geometry_nodes_add_attribute_input_settings((NodesModifierData *)md); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| Show All 35 Lines | LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) { | ||||
| BLI_snprintf(node->idname, | BLI_snprintf(node->idname, | ||||
| sizeof(node->idname), | sizeof(node->idname), | ||||
| "FunctionNodeLegacy%s", | "FunctionNodeLegacy%s", | ||||
| temp_idname + strlen("FunctionNode")); | temp_idname + strlen("FunctionNode")); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** | |||||
| * Versioning code until next subversion bump goes here. | |||||
| * | |||||
| * \note Be sure to check when bumping the version: | |||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | |||||
| * - "versioning_userdef.c", #do_versions_theme | |||||
| * | |||||
| * \note Keep this message at the bottom of the function. | |||||
| */ | |||||
| { | |||||
| /* Keep this block, even when empty. */ | |||||
| } | |||||
| } | } | ||||
| No newline at end of file | No newline at end of file | ||||