-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handle case of no MotionControllerVisualizer singleton #2072
Conversation
} | ||
|
||
/// <summary> | ||
/// Base Awake method that sets the Singleton's unique instance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird spacing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that IS weird.... i'll make sure I have the right tabs/spaces setting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git it not telling me anything changed after i forced new tabbing... MIGHT just be a diff view issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found it.... the issue was in a pre-existing comment it seems
/// <returns>The value of the Singleton's IsInitialized property</returns> | ||
public static bool ConfirmInitialized() | ||
{ | ||
T access = Instance; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wasn't in the master branch already?
Any other singleton changes we didn't have?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it wasn't. i will look and open a PR if i see any more missing code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the same thing!
Overview
Eliminates NullReferenceException when using the Solver System if the MotionControllers prefab is not in the scene (typically attached to the camera)
Changes
Adds ConfirmInitialized() to Singleton (back-port from Dev_Working_Branch)
Checks that the MotionControllerVisualizer has been initialized in ControllerFinder.OnEnable()
Fixes: NullReferenceException in ControllerFinder.OnEnable when using the HoloLensCamera #2053.