File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed
Assets/MixedRealityToolkit.SDK/Experimental/Features/UX/BoundsControl Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,21 @@ public bool Active
454454
455455 #endregion Public Properties
456456
457+ #region Private Properties
458+ private bool IsInitialized
459+ {
460+ get
461+ {
462+ return scaleHandles != null &&
463+ rotationHandles != null &&
464+ boxDisplay != null &&
465+ links != null &&
466+ proximityEffect != null ;
467+ }
468+ }
469+
470+ #endregion
471+
457472 #region Public Methods
458473
459474 /// <summary>
@@ -478,7 +493,7 @@ public void UnhighlightWires()
478493 /// </summary>
479494 public void CreateRig ( )
480495 {
481- if ( ! IsInitialized ( ) )
496+ if ( ! IsInitialized )
482497 {
483498 return ;
484499 }
@@ -838,12 +853,6 @@ private void UpdateBounds()
838853 }
839854 }
840855 }
841-
842- private bool IsInitialized ( )
843- {
844- return scaleHandles != null && rotationHandles != null && boxDisplay != null && links != null && proximityEffect != null ;
845- }
846-
847856 private bool DoesActivationMatchFocus ( FocusEventData eventData )
848857 {
849858 switch ( activation )
@@ -913,7 +922,7 @@ private void DestroyRig()
913922
914923 private void UpdateRigVisibilityInInspector ( )
915924 {
916- if ( ! IsInitialized ( ) )
925+ if ( ! IsInitialized )
917926 {
918927 return ;
919928 }
@@ -1169,7 +1178,7 @@ private void SetHighlighted(Transform activeHandle)
11691178
11701179 private void ResetVisuals ( )
11711180 {
1172- if ( currentPointer != null || ! IsInitialized ( ) )
1181+ if ( currentPointer != null || ! IsInitialized )
11731182 {
11741183 return ;
11751184 }
You can’t perform that action at this time.
0 commit comments