diff --git a/Assets/MirageXR/Common/Scripts/Sketchfab/SketchfabManager.cs b/Assets/MirageXR/Common/Scripts/Sketchfab/SketchfabManager.cs index 51054d548..44b051caf 100644 --- a/Assets/MirageXR/Common/Scripts/Sketchfab/SketchfabManager.cs +++ b/Assets/MirageXR/Common/Scripts/Sketchfab/SketchfabManager.cs @@ -541,7 +541,7 @@ public static IEnumerator GetModelDownloadInfo(string token, ModelPreviewItem mo } else { - DialogWindow.Instance.Show("Error downloading model, try re-logging in"); + DialogWindow.Instance.Show("Error downloading model, try re-logging in", new DialogButtonContent("Ok")); Debug.Log(www.error); } diff --git a/Assets/MirageXR/Player/Scripts/Augmentations/Model/Model.cs b/Assets/MirageXR/Player/Scripts/Augmentations/Model/Model.cs index 1c54dea42..1d9464e69 100644 --- a/Assets/MirageXR/Player/Scripts/Augmentations/Model/Model.cs +++ b/Assets/MirageXR/Player/Scripts/Augmentations/Model/Model.cs @@ -18,13 +18,6 @@ public class Model : MirageXRPrefab public ToggleObject MyToggleObject => _obj; - private ObjectManipulator objectManipulator; - - private void Awake() - { - objectManipulator = gameObject.GetComponent() ? gameObject.GetComponent() : gameObject.AddComponent(); - } - private void Start() { Subscribe(); @@ -203,8 +196,6 @@ private void InitManipulators() gridManager.onTranslateStopped?.Invoke(boundsControl.Target); poiEditor.OnChanged(); }); - - boundsControl.enabled = !_obj.positionLock; } } @@ -350,8 +341,6 @@ private void OnLock(string id, bool locked) { _obj.positionLock = locked; - objectManipulator.enabled = !_obj.positionLock; - var poiEditor = GetComponentInParent(); if (poiEditor)