Page Menu
Home
Search
Configure Global Search
Log In
Paste
P2327
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Brecht Van Lommel (brecht)
on Aug 16 2021, 8:49 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
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");
+ }
+ }
}
}
Event Timeline
Brecht Van Lommel (brecht)
created this paste.
Aug 16 2021, 8:49 PM
Brecht Van Lommel (brecht)
mentioned this in
D11965: Support for anisotropic random walk subsurface (and its albedo inversion)
.
Aug 16 2021, 9:02 PM
Log In to Comment