浏览代码

Merge branch 'FixLightIntensityUpgrade2' of https://github.com/Unity-Technologies/ScriptableRenderPipeline into FixLightIntensityUpgrade2

/main
Antoine Lelievre 6 年前
当前提交
7a14ff21
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Light/HDAdditionalLightData.cs

2
com.unity.render-pipelines.high-definition/HDRP/Lighting/Light/HDAdditionalLightData.cs


{
// Note: We can't access to the light component in OnAfterSerialize as it is not init() yet,
// so instead we use a boolean to do the upgrade in OnEnable().
// However OnEnable is not call when the light is disabled, so the HDLightEditor also call
// the UpgradeLight() code in this case
needsIntensityUpdate_1_0 = true;
}
}

正在加载...
取消
保存