浏览代码

fix mode selection on reflection probe

/main
Frédéric Vauchelles 6 年前
当前提交
8d5eb072
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/SerializedHDReflectionProbe.cs

4
com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/SerializedHDReflectionProbe.cs


internal SerializedProperty legacyBlendDistance;
internal SerializedProperty boxSize;
internal SerializedProperty boxOffset;
internal SerializedProperty legacyMode;
internal new HDAdditionalReflectionData target { get { return serializedObject.targetObject as HDAdditionalReflectionData; } }
internal ReflectionProbe targetLegacy { get { return serializedLegacyObject.targetObject as ReflectionProbe; } }

nearClip = legacyProbe.FindProperty("m_NearClip");
farClip = legacyProbe.FindProperty("m_FarClip");
legacyBlendDistance = legacyProbe.FindProperty("m_BlendDistance");
legacyMode = legacyProbe.FindProperty("m_Mode");
}
internal override void Update()

internal override void Apply()
{
// Sync mode
legacyMode.intValue = mode.intValue;
serializedLegacyObject.ApplyModifiedProperties();
serializedObject.ApplyModifiedProperties();
}
正在加载...
取消
保存