light: setting an _object_channel_mask implicitly enables shadow casting

This commit is contained in:
Eric Wasylishen 2022-12-13 23:37:00 -07:00
parent ea0ed34506
commit 00754e588e
1 changed files with 2 additions and 1 deletions

View File

@ -535,8 +535,9 @@ void Embree_TraceInit(const mbsp_t *bsp)
const bool shadowself = model->shadowself.boolValue();
const bool shadowworldonly = model->shadowworldonly.boolValue();
const bool switchableshadow = model->switchableshadow.boolValue();
const bool has_custom_channel_mask = (model->object_channel_mask.value() != CHANNEL_MASK_DEFAULT);
if (!(isWorld || shadow || shadowself || shadowworldonly || switchableshadow))
if (!(isWorld || shadow || shadowself || shadowworldonly || switchableshadow || has_custom_channel_mask))
continue;
for (int i = 0; i < model->model->numfaces; i++) {