diff --git a/source/blender/blenloader/intern/versioning_300.cc b/source/blender/blenloader/intern/versioning_300.cc index 9b411f17740..e1f773d6d39 100644 --- a/source/blender/blenloader/intern/versioning_300.cc +++ b/source/blender/blenloader/intern/versioning_300.cc @@ -4521,5 +4521,12 @@ void blo_do_versions_300(FileData *fd, Library * /*lib*/, Main *bmain) } } } + + FOREACH_NODETREE_BEGIN (bmain, ntree, id) { + if (ntree->type == NTREE_COMPOSIT) { + version_node_socket_name(ntree, CMP_NODE_LENSDIST, "Distort", "Distortion"); + } + } + FOREACH_NODETREE_END; } } diff --git a/source/blender/nodes/composite/nodes/node_composite_lensdist.cc b/source/blender/nodes/composite/nodes/node_composite_lensdist.cc index 2b37f25eded..e284d49be86 100644 --- a/source/blender/nodes/composite/nodes/node_composite_lensdist.cc +++ b/source/blender/nodes/composite/nodes/node_composite_lensdist.cc @@ -39,7 +39,7 @@ static void cmp_node_lensdist_declare(NodeDeclarationBuilder &b) b.add_input("Image") .default_value({1.0f, 1.0f, 1.0f, 1.0f}) .compositor_domain_priority(0); - b.add_input("Distort") + b.add_input("Distortion") .default_value(0.0f) .min(MINIMUM_DISTORTION) .max(1.0f) @@ -159,7 +159,7 @@ class LensDistortionOperation : public NodeOperation { float get_distortion() { - const Result &input = get_input("Distort"); + const Result &input = get_input("Distortion"); return clamp_f(input.get_float_value_default(0.0f), MINIMUM_DISTORTION, 1.0f); }