Skip to content

Commit dfdde18

Browse files
Fixed save popup appearing twice (#2002)
Co-authored-by: sebastienlagarde <[email protected]>
1 parent 1a08ecf commit dfdde18

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

com.unity.render-pipelines.high-definition/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
105105
- Fixed wizard DXR setup on non-DXR compatible devices.
106106
- Fixed Custom Post Processes affecting preview cameras.
107107
- Fixed issue with lens distortion breaking rendering.
108+
- Fixed save popup appearing twice due to HDRP wizard.
108109

109110
### Changed
110111
- Preparation pass for RTSSShadows to be supported by render graph.

com.unity.render-pipelines.high-definition/Editor/Wizard/HDWizard.Configuration.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -610,15 +610,11 @@ void ChangedFirstGraphicAPI(BuildTarget target)
610610
if (WillEditorUseFirstGraphicsAPI(target))
611611
{
612612
if (EditorUtility.DisplayDialog("Changing editor graphics device",
613-
"You've changed the active graphics API. This requires a restart of the Editor. After restarting finish fixing DXR configuration by launching the wizard again.",
613+
"You've changed the active graphics API. This requires a restart of the Editor. After restarting, finish fixing DXR configuration by launching the wizard again.",
614614
"Restart Editor", "Not now"))
615615
{
616-
if (EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
617-
{
618-
HDProjectSettings.wizardNeedRestartAfterChangingToDX12 = false;
619-
RequestCloseAndRelaunchWithCurrentArguments();
620-
GUIUtility.ExitGUI();
621-
}
616+
HDProjectSettings.wizardNeedRestartAfterChangingToDX12 = false;
617+
RequestCloseAndRelaunchWithCurrentArguments();
622618
}
623619
else
624620
EditorApplication.quitting += () => HDProjectSettings.wizardNeedRestartAfterChangingToDX12 = false;

0 commit comments

Comments
 (0)