From a10eea6e4ce647061813519d5b0ea496f29495b9 Mon Sep 17 00:00:00 2001
From: leonard Wu <364452445@qq.com>
Date: 星期四, 09 八月 2018 09:47:08 +0800
Subject: [PATCH] 同步最新svn内容

---
 Assets/Plugins/PostProcessing/Editor/PostProcessingModelEditor.cs |  158 ++++++++++++++++++++++++++--------------------------
 1 files changed, 79 insertions(+), 79 deletions(-)

diff --git a/Assets/Plugins/PostProcessing/Editor/PostProcessingModelEditor.cs b/Assets/Plugins/PostProcessing/Editor/PostProcessingModelEditor.cs
index 844f9e8..f1deabb 100644
--- a/Assets/Plugins/PostProcessing/Editor/PostProcessingModelEditor.cs
+++ b/Assets/Plugins/PostProcessing/Editor/PostProcessingModelEditor.cs
@@ -1,79 +1,79 @@
-using UnityEngine;
-using UnityEngine.PostProcessing;
-using System;
-using System.Linq.Expressions;
-
-namespace UnityEditor.PostProcessing
-{
-    public class PostProcessingModelEditor
-    {
-        public PostProcessingModel target { get; internal set; }
-        public SerializedProperty serializedProperty { get; internal set; }
-
-        protected SerializedProperty m_SettingsProperty;
-        protected SerializedProperty m_EnabledProperty;
-
-        internal bool alwaysEnabled = false;
-        internal PostProcessingProfile profile;
-        internal PostProcessingInspector inspector;
-
-        internal void OnPreEnable()
-        {
-            m_SettingsProperty = serializedProperty.FindPropertyRelative("m_Settings");
-            m_EnabledProperty = serializedProperty.FindPropertyRelative("m_Enabled");
-
-            OnEnable();
-        }
-
-        public virtual void OnEnable()
-        {}
-
-        public virtual void OnDisable()
-        {}
-
-        internal void OnGUI()
-        {
-            GUILayout.Space(5);
-
-            var display = alwaysEnabled
-                ? EditorGUIHelper.Header(serializedProperty.displayName, m_SettingsProperty, Reset)
-                : EditorGUIHelper.Header(serializedProperty.displayName, m_SettingsProperty, m_EnabledProperty, Reset);
-
-            if (display)
-            {
-                EditorGUI.indentLevel++;
-                using (new EditorGUI.DisabledGroupScope(!m_EnabledProperty.boolValue))
-                {
-                    OnInspectorGUI();
-                }
-                EditorGUI.indentLevel--;
-            }
-        }
-
-        void Reset()
-        {
-            var obj = serializedProperty.serializedObject;
-            Undo.RecordObject(obj.targetObject, "Reset");
-            target.Reset();
-            EditorUtility.SetDirty(obj.targetObject);
-        }
-
-        public virtual void OnInspectorGUI()
-        {}
-
-        public void Repaint()
-        {
-            inspector.Repaint();
-        }
-
-        protected SerializedProperty FindSetting<T, TValue>(Expression<Func<T, TValue>> expr)
-        {
-            return m_SettingsProperty.FindPropertyRelative(ReflectionUtils.GetFieldPath(expr));
-        }
-
-        protected SerializedProperty FindSetting<T, TValue>(SerializedProperty prop, Expression<Func<T, TValue>> expr)
-        {
-            return prop.FindPropertyRelative(ReflectionUtils.GetFieldPath(expr));
-        }
-    }
-}
+using UnityEngine;
+using UnityEngine.PostProcessing;
+using System;
+using System.Linq.Expressions;
+
+namespace UnityEditor.PostProcessing
+{
+    public class PostProcessingModelEditor
+    {
+        public PostProcessingModel target { get; internal set; }
+        public SerializedProperty serializedProperty { get; internal set; }
+
+        protected SerializedProperty m_SettingsProperty;
+        protected SerializedProperty m_EnabledProperty;
+
+        internal bool alwaysEnabled = false;
+        internal PostProcessingProfile profile;
+        internal PostProcessingInspector inspector;
+
+        internal void OnPreEnable()
+        {
+            m_SettingsProperty = serializedProperty.FindPropertyRelative("m_Settings");
+            m_EnabledProperty = serializedProperty.FindPropertyRelative("m_Enabled");
+
+            OnEnable();
+        }
+
+        public virtual void OnEnable()
+        {}
+
+        public virtual void OnDisable()
+        {}
+
+        internal void OnGUI()
+        {
+            GUILayout.Space(5);
+
+            var display = alwaysEnabled
+                ? EditorGUIHelper.Header(serializedProperty.displayName, m_SettingsProperty, Reset)
+                : EditorGUIHelper.Header(serializedProperty.displayName, m_SettingsProperty, m_EnabledProperty, Reset);
+
+            if (display)
+            {
+                EditorGUI.indentLevel++;
+                using (new EditorGUI.DisabledGroupScope(!m_EnabledProperty.boolValue))
+                {
+                    OnInspectorGUI();
+                }
+                EditorGUI.indentLevel--;
+            }
+        }
+
+        void Reset()
+        {
+            var obj = serializedProperty.serializedObject;
+            Undo.RecordObject(obj.targetObject, "Reset");
+            target.Reset();
+            EditorUtility.SetDirty(obj.targetObject);
+        }
+
+        public virtual void OnInspectorGUI()
+        {}
+
+        public void Repaint()
+        {
+            inspector.Repaint();
+        }
+
+        protected SerializedProperty FindSetting<T, TValue>(Expression<Func<T, TValue>> expr)
+        {
+            return m_SettingsProperty.FindPropertyRelative(ReflectionUtils.GetFieldPath(expr));
+        }
+
+        protected SerializedProperty FindSetting<T, TValue>(SerializedProperty prop, Expression<Func<T, TValue>> expr)
+        {
+            return prop.FindPropertyRelative(ReflectionUtils.GetFieldPath(expr));
+        }
+    }
+}

--
Gitblit v1.8.0