From 1db57568092e753b7886e33341296a33218d1ff4 Mon Sep 17 00:00:00 2001 From: martint-unity Date: Tue, 22 Dec 2020 13:52:00 +0100 Subject: [PATCH 1/2] added property field additional lights rend mode --- .../Editor/UniversalRenderPipelineAssetEditor.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/com.unity.render-pipelines.universal/Editor/UniversalRenderPipelineAssetEditor.cs b/com.unity.render-pipelines.universal/Editor/UniversalRenderPipelineAssetEditor.cs index a56ae2fa169..e96ca2b3da8 100644 --- a/com.unity.render-pipelines.universal/Editor/UniversalRenderPipelineAssetEditor.cs +++ b/com.unity.render-pipelines.universal/Editor/UniversalRenderPipelineAssetEditor.cs @@ -148,7 +148,6 @@ internal class Styles SerializedProperty m_ShaderVariantLogLevel; - LightRenderingMode selectedLightRenderingMode; SerializedProperty m_ColorGradingMode; SerializedProperty m_ColorGradingLutSize; SerializedProperty m_UseFastSRGBLinearConversion; @@ -235,8 +234,6 @@ void OnEnable() m_UseAdaptivePerformance = serializedObject.FindProperty("m_UseAdaptivePerformance"); - selectedLightRenderingMode = (LightRenderingMode)m_AdditionalLightsRenderingModeProp.intValue; - string Key = "Universal_Shadow_Setting_Unit:UI_State"; m_State = new EditorPrefBoolFlags(Key); } @@ -324,8 +321,7 @@ void DrawLightingSettings() EditorGUILayout.Space(); // Additional light - selectedLightRenderingMode = (LightRenderingMode)EditorGUILayout.EnumPopup(Styles.addditionalLightsRenderingModeText, selectedLightRenderingMode); - m_AdditionalLightsRenderingModeProp.intValue = (int)selectedLightRenderingMode; + EditorGUILayout.PropertyField(m_AdditionalLightsRenderingModeProp, Styles.addditionalLightsRenderingModeText); EditorGUI.indentLevel++; disableGroup = m_AdditionalLightsRenderingModeProp.intValue == (int)LightRenderingMode.Disabled; From 81f7cc14947e14972900aa992705c0e5dbf1f0a8 Mon Sep 17 00:00:00 2001 From: martint-unity Date: Tue, 22 Dec 2020 14:21:45 +0100 Subject: [PATCH 2/2] updated changelog --- com.unity.render-pipelines.universal/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/com.unity.render-pipelines.universal/CHANGELOG.md b/com.unity.render-pipelines.universal/CHANGELOG.md index d739b8bb2f0..0075f0b963c 100644 --- a/com.unity.render-pipelines.universal/CHANGELOG.md +++ b/com.unity.render-pipelines.universal/CHANGELOG.md @@ -75,6 +75,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed an issue where MSAA did not work in Editor Game View on Windows with Vulkan. - Fixed issue where selecting and deselecting Forward Renderer asset would leak memory [case 1290628](https://issuetracker.unity3d.com/issues/urp-scriptablerendererfeatureeditor-memory-leak-while-interacting-with-forward-renderer-in-the-project-window) - Fixed the default background color for previews to use the original color. +- Fixed an undo issues for additiona light property on the UniversalRenderPipeline Asset. ## [10.2.0] - 2020-10-19