Fix #126038: Default Cube has Transparent Shadows off

This commit is contained in:
Miguel Pozo
2024-09-03 13:03:30 +02:00
parent 16eff5af62
commit 2afb9e3d95

View File

@@ -640,6 +640,8 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
LISTBASE_FOREACH (Material *, ma, &bmain->materials) {
/* Update default material to be a bit more rough. */
ma->roughness = 0.5f;
/* Enable transparent shadows. */
ma->blend_flag |= MA_BL_TRANSPARENT_SHADOW;
if (ma->nodetree) {
for (bNode *node : ma->nodetree->all_nodes()) {