Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,12 @@ static void Drawer_SectionCookies(SerializedHDRenderPipelineAsset serialized, Ed

static void Drawer_SectionReflection(SerializedHDRenderPipelineAsset serialized, Editor owner)
{
EditorGUILayout.PropertyField(serialized.renderPipelineSettings.supportSSR, Styles.supportSSRContent);
using (new EditorGUI.DisabledScope(!serialized.renderPipelineSettings.supportMotionVectors.boolValue))
{
EditorGUILayout.PropertyField(serialized.renderPipelineSettings.supportSSR, Styles.supportSSRContent);
serialized.renderPipelineSettings.supportSSR.boolValue &= serialized.renderPipelineSettings.supportMotionVectors.boolValue;
Copy link
Copy Markdown
Contributor Author

@pmavridis pmavridis Jul 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The alternative is to let supportSSR = true in the asset, but sanitize the frame settings in FrameSettings::Sanitize.

Sanitizing the asset looks better to me because there are many places that query the supportSSR variable from the asset (and not the frame settings).

}

using (new EditorGUI.DisabledScope(!serialized.renderPipelineSettings.supportSSR.boolValue))
{
EditorGUILayout.PropertyField(serialized.renderPipelineSettings.supportSSRTransparent, Styles.supportSSRTransparentContent);
Expand Down