[Bf-blender-cvs] [1a96045eec9] master: Fix T92367: missing Subsurface Anisotropy and IOR sockets with factory startup
Brecht Van Lommel
noreply at git.blender.org
Wed Oct 20 17:50:41 CEST 2021
Commit: 1a96045eec96e0c6f52ded6fd40040c4b88524d9
Author: Brecht Van Lommel
Date: Wed Oct 20 16:27:03 2021 +0200
Branches: master
https://developer.blender.org/rB1a96045eec96e0c6f52ded6fd40040c4b88524d9
Fix T92367: missing Subsurface Anisotropy and IOR sockets with factory startup
===================================================================
M source/blender/blenloader/intern/versioning_defaults.c
===================================================================
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index c50b410e2b9..fa61b1ca6cd 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -592,9 +592,11 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
bNodeSocketValueFloat *roughness_data = roughness_socket->default_value;
roughness_data->value = 0.4f;
node->custom2 = SHD_SUBSURFACE_RANDOM_WALK;
+ nodeUpdate(ma->nodetree, node);
}
else if (node->type == SH_NODE_SUBSURFACE_SCATTERING) {
node->custom1 = SHD_SUBSURFACE_RANDOM_WALK;
+ nodeUpdate(ma->nodetree, node);
}
}
}
More information about the Bf-blender-cvs
mailing list