diff --git a/source/blender/blenkernel/BKE_blender_version.h b/source/blender/blenkernel/BKE_blender_version.h index 38dc1c949dc..c11c7585203 100644 --- a/source/blender/blenkernel/BKE_blender_version.h +++ b/source/blender/blenkernel/BKE_blender_version.h @@ -27,7 +27,7 @@ /* Blender file format version. */ #define BLENDER_FILE_VERSION BLENDER_VERSION -#define BLENDER_FILE_SUBVERSION 86 +#define BLENDER_FILE_SUBVERSION 87 /* Minimum Blender version that supports reading file written with the current * version. Older Blender versions will test this and cancel loading the file, showing a warning to diff --git a/source/blender/blenloader/intern/versioning_500.cc b/source/blender/blenloader/intern/versioning_500.cc index 8ae49b401bf..dae9a5977c5 100644 --- a/source/blender/blenloader/intern/versioning_500.cc +++ b/source/blender/blenloader/intern/versioning_500.cc @@ -3403,6 +3403,17 @@ void blo_do_versions_500(FileData *fd, Library * /*lib*/, Main *bmain) FOREACH_NODETREE_END; } + if (!MAIN_VERSION_FILE_ATLEAST(bmain, 500, 87)) { + FOREACH_NODETREE_BEGIN (bmain, node_tree, id) { + if (node_tree->type != NTREE_COMPOSIT) { + continue; + } + version_node_input_socket_name(node_tree, CMP_NODE_ALPHAOVER, "Image_001", "Foreground"); + version_node_input_socket_name(node_tree, CMP_NODE_ALPHAOVER, "Image", "Background"); + } + FOREACH_NODETREE_END; + } + /** * Always bump subversion in BKE_blender_version.h when adding versioning * code here, and wrap it inside a MAIN_VERSION_FILE_ATLEAST check. diff --git a/source/blender/nodes/composite/nodes/node_composite_alpha_over.cc b/source/blender/nodes/composite/nodes/node_composite_alpha_over.cc index 2dc6cd49b5b..0d85b83975e 100644 --- a/source/blender/nodes/composite/nodes/node_composite_alpha_over.cc +++ b/source/blender/nodes/composite/nodes/node_composite_alpha_over.cc @@ -41,8 +41,8 @@ static const EnumPropertyItem type_items[] = { static void node_declare(NodeDeclarationBuilder &b) { b.is_function_node(); - b.add_input("Image").default_value({1.0f, 1.0f, 1.0f, 1.0f}); - b.add_input("Image", "Image_001").default_value({1.0f, 1.0f, 1.0f, 1.0f}); + b.add_input("Background").default_value({1.0f, 1.0f, 1.0f, 1.0f}); + b.add_input("Foreground").default_value({1.0f, 1.0f, 1.0f, 1.0f}); b.add_input("Fac").default_value(1.0f).min(0.0f).max(1.0f).subtype(PROP_FACTOR); b.add_input("Type") .default_value(CMP_NODE_ALPHA_OVER_OPERATION_TYPE_OVER)