Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
Added comment around change
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDarksideJ committed Dec 22, 2020
1 parent f2b135e commit 676067e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions XRTK-Core/Packages/com.xrtk.core/Editor/PackageInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ private static void AddConfigurations(List<string> profiles)
{
AssetDatabase.Refresh(ImportAssetOptions.ForceUpdate);

//Clear the selection to ensure the inspector does not cause errors, Empty try catch to avoid Unity crashing when Selection is null
try
{
Selection.activeGameObject = null;
Selection.activeObject = null;
}
catch { }

Expand Down Expand Up @@ -199,9 +200,10 @@ private static string CopyAsset(this string rootPath, string sourceAssetPath, st
/// <param name="rootProfile">The root profile to install the </param>
public static void InstallConfiguration(MixedRealityPlatformServiceConfigurationProfile platformConfigurationProfile, MixedRealityToolkitRootProfile rootProfile)
{
//Clear the selection to ensure the inspector does not cause errors, Empty try catch to avoid Unity crashing when Selection is null
try
{
Selection.activeGameObject = null;
Selection.activeObject = null;
}
catch { }

Expand Down

0 comments on commit 676067e

Please sign in to comment.