-
-
Notifications
You must be signed in to change notification settings - Fork 992
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(RoomExtender_PlayAreaGizmo): null play area
The play area gizmo of the RoomExtender looks up the play area in `Awake` and later uses it when drawing the gizmo. The issue is that the SDK Manager is not set up correctly at that point in time so the returned play area is null, resulting in errors when trying to draw the gizmo. This fix makes sure `VRTK_SDKManager.instance` is always set up, no matter when the getter is called. Additionally the play area gizmo drawing method is changed to not throw any errors if the needed objects weren't found in the `Awake` method. That method logs a warning already, so the user is notified about the reason the gizmo isn't drawing. This fix resolves #985.
- Loading branch information
Christopher - Marcel Böddecker
committed
Mar 6, 2017
1 parent
6c8f887
commit 1dd32c6
Showing
2 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters