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

Commit

Permalink
fixed a bug where the xrtk would auto-configure itself bc the Instanc…
Browse files Browse the repository at this point in the history
…e was called (#760)
  • Loading branch information
StephenHodgson authored Jan 15, 2021
1 parent bc70618 commit 1f980e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Editor/EditorActiveProfileChangeHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using UnityEditor;
using UnityEngine;
using XRTK.Extensions;
using XRTK.Services;

namespace XRTK.Editor
Expand All @@ -18,7 +17,7 @@ static EditorActiveProfileChangeHandler()

private static void EditorApplication_hierarchyChanged()
{
if (!(MixedRealityToolkit.Instance.IsNull() || MixedRealityToolkit.Instance.ActiveProfile.IsNull()))
if (MixedRealityToolkit.HasActiveProfile)
{
if (MixedRealityToolkit.Instance.ActiveProfile.IsInputSystemEnabled &&
Utilities.InputMappingAxisUtility.CheckUnityInputManagerMappings(Utilities.ControllerMappingUtilities.UnityInputManagerAxes))
Expand Down

0 comments on commit 1f980e6

Please sign in to comment.