Fix T92367: missing Subsurface Anisotropy and IOR sockets with factory startup
This commit is contained in:
parent
0c52eed863
commit
1a96045eec
Notes:
blender-bot
2023-02-14 10:11:54 +01:00
Referenced by issue #92367, Missing sockets in Principled BSDF
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue