Skip to content

Commit ffbdaff

Browse files
Revert "Added the possibility to replace or overwrite already existing local package when installing a new one. (#1921)"
This reverts commit 3a451db.
1 parent caa015b commit ffbdaff

File tree

2 files changed

+11
-28
lines changed

2 files changed

+11
-28
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
117117
- Skip biquadratic resampling of vbuffer when volumetric fog filtering is enabled.
118118
- Optimized Grain and sRGB Dithering.
119119
- On platforms that allow it skip the first mip of the depth pyramid and compute it alongside the depth buffer used for low res transparents.
120-
- When trying to install the local configuration package, if another one is already present the user is now asked whether they want to keep it or not.
121120

122121
## [10.0.0] - 2019-06-10
123122

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

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Entry[] entries
175175
new Entry(InclusiveScope.DXR, Style.dxrActivated, IsDXRActivationCorrect, FixDXRActivation),
176176
new Entry(InclusiveScope.DXR, Style.dxr64bits, IsArchitecture64Bits, FixArchitecture64Bits),
177177
new Entry(InclusiveScope.DXR, Style.dxrResources, IsDXRAssetCorrect, FixDXRAsset),
178-
178+
179179
// Optional checks
180180
new Entry(InclusiveScope.DXROptional, Style.dxrScreenSpaceShadow, IsDXRScreenSpaceShadowCorrect, null, forceDisplayCheck: true, skipErrorIcon: true),
181181
new Entry(InclusiveScope.DXROptional, Style.dxrReflections, IsDXRReflectionsCorrect, null, forceDisplayCheck: true, skipErrorIcon: true),
@@ -219,7 +219,7 @@ void FixAllEntryInScope(InclusiveScope scope)
219219
});
220220
}
221221

222-
#endregion
222+
#endregion
223223

224224
#region Queue
225225

@@ -233,7 +233,7 @@ class QueuedLauncher
233233
public void Stop() => m_StopRequested = true;
234234

235235
// Function to pause/unpause the action execution
236-
public void Pause() => m_OnPause = true;
236+
public void Pause() => m_OnPause = true;
237237
public void Unpause() => m_OnPause = false;
238238

239239
public int remainingFixes => m_Queue.Count;
@@ -569,7 +569,7 @@ bool IsDXRAutoGraphicsAPICorrect()
569569
=> !PlayerSettings.GetUseDefaultGraphicsAPIs(CalculateSelectedBuildTarget());
570570
void FixDXRAutoGraphicsAPI(bool fromAsyncUnused)
571571
=> PlayerSettings.SetUseDefaultGraphicsAPIs(CalculateSelectedBuildTarget(), false);
572-
572+
573573
bool IsDXRDirect3D12Correct()
574574
=> PlayerSettings.GetGraphicsAPIs(CalculateSelectedBuildTarget()).FirstOrDefault() == GraphicsDeviceType.Direct3D12 && !HDProjectSettings.wizardNeedRestartAfterChangingToDX12;
575575
void FixDXRDirect3D12(bool fromAsyncUnused)
@@ -624,7 +624,7 @@ void ChangedFirstGraphicAPI(BuildTarget target)
624624
EditorApplication.quitting += () => HDProjectSettings.wizardNeedRestartAfterChangingToDX12 = false;
625625
}
626626
}
627-
627+
628628
void CheckPersistantNeedReboot()
629629
{
630630
if (HDProjectSettings.wizardNeedRestartAfterChangingToDX12)
@@ -658,7 +658,7 @@ bool IsDXRTransparentReflectionsCorrect()
658658
bool IsDXRGICorrect()
659659
=> HDRenderPipeline.currentAsset != null
660660
&& HDRenderPipeline.currentAsset.currentPlatformRenderPipelineSettings.supportSSGI;
661-
661+
662662
bool IsArchitecture64Bits()
663663
=> EditorUserBuildSettings.activeBuildTarget == BuildTarget.StandaloneWindows64;
664664
void FixArchitecture64Bits(bool fromAsyncUnused)
@@ -705,7 +705,7 @@ void IsLocalConfigurationPackageInstalledAsync(Action<bool> callback)
705705
callback?.Invoke(lastPackageConfigInstalledCheck = false);
706706
return;
707707
}
708-
708+
709709
m_UsedPackageRetriever.ProcessAsync(
710710
k_HdrpConfigPackageName,
711711
(installed, info) =>
@@ -728,23 +728,7 @@ void InstallLocalConfigurationPackage(Action onCompletion)
728728
{
729729
// installed is not used because this one will be always installed
730730

731-
bool copyFolder = false;
732731
if (!Directory.Exists(k_LocalHdrpConfigPackagePath))
733-
{
734-
copyFolder = true;
735-
}
736-
else
737-
{
738-
if (EditorUtility.DisplayDialog("Installing local configuration package",
739-
"A local configuration package already exists. Do you want to replace it or keep it? Replacing it may overwrite local changes you made and keeping it may make it desynchronized with the main HDRP packages version.",
740-
"Replace", "Keep"))
741-
{
742-
Directory.Delete(k_LocalHdrpConfigPackagePath, true);
743-
copyFolder = true;
744-
}
745-
}
746-
747-
if (copyFolder)
748732
{
749733
CopyFolder(info.resolvedPath, k_LocalHdrpConfigPackagePath);
750734
}
@@ -755,7 +739,7 @@ void InstallLocalConfigurationPackage(Action onCompletion)
755739
onCompletion?.Invoke();
756740
});
757741
});
758-
742+
759743
void RefreshDisplayOfConfigPackageArea()
760744
{
761745
if (!m_UsedPackageRetriever.isRunning)
@@ -789,7 +773,7 @@ class UsedPackageRetriever
789773
string m_CurrentPackageName;
790774

791775
Queue<(string packageName, Action<bool, PackageManager.PackageInfo> action)> m_Queue = new Queue<(string packageName, Action<bool, PackageManager.PackageInfo> action)>();
792-
776+
793777
bool isCurrentInProgress => m_CurrentRequest != null && !m_CurrentRequest.Equals(null) && !m_CurrentRequest.IsCompleted;
794778

795779
public bool isRunning => isCurrentInProgress || m_Queue.Count() > 0;
@@ -852,7 +836,7 @@ void Finished()
852836
}
853837
}
854838
UsedPackageRetriever m_UsedPackageRetriever = new UsedPackageRetriever();
855-
839+
856840
class LastAvailablePackageVersionRetriever
857841
{
858842
PackageManager.Requests.SearchRequest m_CurrentRequest;
@@ -917,7 +901,7 @@ void Finished()
917901
}
918902
}
919903
LastAvailablePackageVersionRetriever m_LastAvailablePackageRetriever = new LastAvailablePackageVersionRetriever();
920-
904+
921905
class PackageInstaller
922906
{
923907
PackageManager.Requests.AddRequest m_CurrentRequest;

0 commit comments

Comments
 (0)