浏览代码

Fixed null reference caused by accessing property.objectReferenceValue. We don't need to record it as we should call ApplyModifiedProperties on serializedObject.

/main
Felipe Lira 6 年前
当前提交
9c13d20e
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 3
      com.unity.render-pipelines.core/CoreRP/Editor/CoreEditorUtils.cs

3
com.unity.render-pipelines.core/CoreRP/Editor/CoreEditorUtils.cs


mode = EditorGUILayout.Popup(label, mode, options);
if (EditorGUI.EndChangeCheck())
{
Undo.RecordObject(property.objectReferenceValue, property.name);
}
}
public static void DrawCascadeSplitGUI<T>(ref SerializedProperty shadowCascadeSplit)

正在加载...
取消
保存