@@ -271,11 +271,8 @@ private async void DelayedModelControlStart()
271271
272272 foreach ( CCFTreeNode node in modelControl . GetDefaultLoadedNodes ( ) )
273273 {
274- node . SetNodeModelVisibility ( true ) ;
275- Transform nodeT = node . GetNodeTransform ( ) ;
276- // I don't know why this has to happen, somewhere these are getting set incorrectly?
277- nodeT . localPosition = Vector3 . zero ;
278- nodeT . localRotation = Quaternion . identity ;
274+ await node . GetLoadedTask ( true ) ;
275+ node . SetNodeModelVisibility ( true , false , false ) ;
279276 }
280277 }
281278
@@ -329,6 +326,11 @@ public TP_ProbeQuickSettings GetProbeQuickSettings()
329326 {
330327 return probeQuickSettings ;
331328 }
329+
330+ public TP_QuestionDialogue GetQuestionDialogue ( )
331+ {
332+ return qDialogue ;
333+ }
332334
333335 public Collider CCFCollider ( )
334336 {
@@ -506,7 +508,7 @@ public ProbeManager AddNewProbeTransformed(int probeType, ProbeInsertion inserti
506508 if ( manipulatorId != 0 ) probeManager . SetEphysLinkMovement ( true , manipulatorId ) ;
507509 }
508510
509- probeManager . GetProbeController ( ) . SetProbePositionTransformed ( insertion ) ;
511+ probeManager . GetProbeController ( ) . SetProbePosition ( insertion ) ;
510512
511513 return probeManager ;
512514 }
@@ -623,13 +625,16 @@ public void ReturnProbeColor(Color returnColor)
623625 probeColors . Insert ( 0 , returnColor ) ;
624626 }
625627
626- public void SetActiveProbe ( ProbeManager newActiveProbeController )
628+ public void SetActiveProbe ( ProbeManager newActiveProbeManager )
627629 {
628- if ( activeProbe == newActiveProbeController )
630+ if ( activeProbe == newActiveProbeManager )
629631 return ;
630632
631- Debug . Log ( "Setting active probe to: " + newActiveProbeController . gameObject . name ) ;
632- activeProbe = newActiveProbeController ;
633+ #if UNITY_EDITOR
634+ Debug . Log ( "Setting active probe to: " + newActiveProbeManager . gameObject . name ) ;
635+ #endif
636+ activeProbe = newActiveProbeManager ;
637+ activeProbe . SetActive ( ) ;
633638
634639 foreach ( ProbeManager probeManager in allProbeManagers )
635640 {
@@ -657,7 +662,7 @@ public void SetActiveProbe(ProbeManager newActiveProbeController)
657662 inPlaneSlice . ResetZoom ( ) ;
658663
659664 // Update probe quick settings
660- probeQuickSettings . SetProbeManager ( newActiveProbeController ) ;
665+ probeQuickSettings . SetProbeManager ( newActiveProbeManager ) ;
661666 }
662667
663668 public void UpdateQuickSettings ( )
0 commit comments