Skip to content

Commit

Permalink
fixed issues with model bounding box showing in play mode
Browse files Browse the repository at this point in the history
  • Loading branch information
robhillman97 committed Sep 11, 2023
1 parent d8aed33 commit 26c5952
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
11 changes: 0 additions & 11 deletions Assets/MirageXR/Player/Scripts/Augmentations/Model/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ public class Model : MirageXRPrefab

public ToggleObject MyToggleObject => _obj;

private ObjectManipulator objectManipulator;

private void Awake()
{
objectManipulator = gameObject.GetComponent<ObjectManipulator>() ? gameObject.GetComponent<ObjectManipulator>() : gameObject.AddComponent<ObjectManipulator>();
}

private void Start()
{
Subscribe();
Expand Down Expand Up @@ -203,8 +196,6 @@ private void InitManipulators()
gridManager.onTranslateStopped?.Invoke(boundsControl.Target);
poiEditor.OnChanged();
});

boundsControl.enabled = !_obj.positionLock;
}
}

Expand Down Expand Up @@ -350,8 +341,6 @@ private void OnLock(string id, bool locked)
{
_obj.positionLock = locked;

objectManipulator.enabled = !_obj.positionLock;

var poiEditor = GetComponentInParent<PoiEditor>();

if (poiEditor)
Expand Down

0 comments on commit 26c5952

Please sign in to comment.