From 00754e588ec79f0951a0f4a644f44cb95bf99fd6 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Tue, 13 Dec 2022 23:37:00 -0700 Subject: [PATCH] light: setting an _object_channel_mask implicitly enables shadow casting --- light/trace_embree.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/light/trace_embree.cc b/light/trace_embree.cc index 9956a0ad..ca5e831f 100644 --- a/light/trace_embree.cc +++ b/light/trace_embree.cc @@ -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++) {