From 90f8365e94a80701ad9d8fe72582ce4be08d203d Mon Sep 17 00:00:00 2001 From: Adrien de Tocqueville Date: Thu, 10 Sep 2020 16:53:57 +0200 Subject: [PATCH] Fix property field drawing in custom pass volume --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 1 + .../Editor/RenderPipeline/CustomPass/CustomPassDrawer.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index e0f16a78938..1981c09d788 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -68,6 +68,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed an issue that lead to corrupted refraction in some scenarios on xbox. - Fixed for light loop scalarization not happening. - Fixed issue with stencil not being set in rendergraph mode. +- Fixed rendering of custom passes in the Custom Pass Volume inspector ### Changed - Preparation pass for RTSSShadows to be supported by render graph. diff --git a/com.unity.render-pipelines.high-definition/Editor/RenderPipeline/CustomPass/CustomPassDrawer.cs b/com.unity.render-pipelines.high-definition/Editor/RenderPipeline/CustomPass/CustomPassDrawer.cs index 4921eb510ce..3ffc0e3db43 100644 --- a/com.unity.render-pipelines.high-definition/Editor/RenderPipeline/CustomPass/CustomPassDrawer.cs +++ b/com.unity.render-pipelines.high-definition/Editor/RenderPipeline/CustomPass/CustomPassDrawer.cs @@ -196,8 +196,8 @@ protected virtual void DoPassGUI(SerializedProperty customPass, Rect rect) { foreach (var prop in m_CustomPassUserProperties) { - EditorGUI.PropertyField(rect, prop); - rect.y += Styles.defaultLineSpace; + EditorGUI.PropertyField(rect, prop, true); + rect.y += EditorGUI.GetPropertyHeight(prop); } }