浏览代码

Fixed a null reference when particle component lights were used.

/main
Felipe Lira 7 年前
当前提交
f545fbe7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs

2
ScriptableRenderPipeline/LightweightPipeline/LightweightPipeline.cs


}
Light light = lightData.light;
if (light.bakingOutput.mixedLightingMode == MixedLightingMode.Subtractive && light.bakingOutput.lightmapBakeType == LightmapBakeType.Mixed)
if (light != null && light.bakingOutput.mixedLightingMode == MixedLightingMode.Subtractive && light.bakingOutput.lightmapBakeType == LightmapBakeType.Mixed)
{
// TODO: Add support to shadow mask
if (m_MixedLightingSetup == MixedLightingSetup.None && lightData.light.shadows != LightShadows.None)

正在加载...
取消
保存