Skip to content

Commit 30abcd8

Browse files
committed
feat: re-enabling some disabled Accounts features
1 parent 848a0de commit 30abcd8

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

Assets/Scripts/Accounts/BackendComms/UnisaveAccountsManager.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using UnityEngine.Serialization;
66
using UnityEngine.Events;
77
using System.Linq;
8-
using UnityEditor;
98
using System.Threading.Tasks;
109

1110
/// <summary>

Assets/Scripts/Pinpoint/Probes/Controllers/PlaceholderProbeController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using BrainAtlas;
23
using CoordinateSpaces;
34
using CoordinateTransforms;
45
using UnityEngine;
@@ -34,8 +35,7 @@ private void Awake()
3435
_initialPosition = transform.position;
3536
_initialRotation = transform.rotation;
3637

37-
throw new NotImplementedException();
38-
//Insertion = new ProbeInsertion(defaultStart, defaultAngles, new CCFSpace(), new CCFTransform());
38+
Insertion = new ProbeInsertion(defaultStart, defaultAngles, BrainAtlasManager.ActiveReferenceAtlas.AtlasSpace.Name, BrainAtlasManager.ActiveAtlasTransform.Name);
3939
}
4040

4141
/// <summary>

Assets/Scripts/Pinpoint/TrajectoryPlannerManager.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -996,12 +996,11 @@ private void AccountsProbeStatusUpdatedCallback((Vector3 apmldv, Vector3 angles,
996996

997997
private void AccountsNewProbeHelper((Vector3 apmldv, Vector3 angles, int type, string spaceName, string transformName, string UUID, string overrideName, Color color) data)
998998
{
999-
// [TODO]
1000-
//ProbeManager newProbeManager = AddNewProbe((ProbeProperties.ProbeType)data.type, new ProbeInsertion(data.apmldv, data.angles, CoordinateSpaceManager.ActiveCoordinateSpace, CoordinateSpaceManager.ActiveCoordinateTransform), data.UUID);
1001-
//if (data.overrideName != null)
1002-
// newProbeManager.OverrideName = data.overrideName;
1003-
//if (data.color != null)
1004-
// newProbeManager.Color = data.color;
999+
ProbeManager newProbeManager = AddNewProbe((ProbeProperties.ProbeType)data.type, new ProbeInsertion(data.apmldv, data.angles, BrainAtlasManager.ActiveReferenceAtlas.AtlasSpace.Name, BrainAtlasManager.ActiveAtlasTransform.Name), data.UUID);
1000+
if (data.overrideName != null)
1001+
newProbeManager.OverrideName = data.overrideName;
1002+
if (data.color != null)
1003+
newProbeManager.Color = data.color;
10051004
}
10061005

10071006
#endregion

0 commit comments

Comments
 (0)