[Rendering] Fixes null exception on first frame. #1343
This commit is contained in:
Родитель
04a263bbd0
Коммит
1eee56a6ba
|
@ -125,7 +125,7 @@ namespace Stride.Rendering
|
|||
isShadowCaster &= modelMaterialInstance.IsShadowCaster;
|
||||
|
||||
if (isShadowCaster != renderMesh.IsShadowCaster
|
||||
|| materialPass.HasTransparency != renderMesh.MaterialPass.HasTransparency)
|
||||
|| materialPass.HasTransparency != renderMesh.MaterialPass?.HasTransparency)
|
||||
{
|
||||
renderMesh.IsShadowCaster = isShadowCaster;
|
||||
VisibilityGroup.NeedActiveRenderStageReevaluation = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче