Page MenuHome
Paste P2327

(An Untitled Masterwork)
ActivePublic

Authored by Brecht Van Lommel (brecht) on Aug 16 2021, 8:49 PM.
diff --git a/source/blender/blenloader/intern/versioning_300.c b/source/blender/blenloader/intern/versioning_300.c
index a6dad29..2f89c28 100644
--- a/source/blender/blenloader/intern/versioning_300.c
+++ b/source/blender/blenloader/intern/versioning_300.c
@@ -409,6 +409,13 @@ static void do_version_subsurface_methods(bNode *node)
if (node->custom2 != SHD_SUBSURFACE_RANDOM_WALK) {
node->custom2 = SHD_SUBSURFACE_RANDOM_WALK_LEGACY;
}
+
+ LISTBASE_FOREACH (bNodeSocket *, socket, &node->inputs) {
+ if (STREQ(sock->identifier, "Subsurface Ior")) {
+ STRNCPY(sock->identifier, "Subsurface IOR");
+ STRNCPY(sock->name, "Subsurface IOR");
+ }
+ }
}
}