Fix T92367: missing Subsurface Anisotropy and IOR sockets with factory startup

This commit is contained in:
Brecht Van Lommel 2021-10-20 16:27:03 +02:00
parent 0c52eed863
commit 1a96045eec
Notes: blender-bot 2023-02-14 10:11:54 +01:00
Referenced by issue #92367, Missing sockets in Principled BSDF
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}
}