Skip to content

Commit 8487cf2

Browse files
authored
Fix the docs build (#11189)
* Update .gitignore * Update to use "old" syntax
1 parent 028b016 commit 8487cf2

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ project.json
2020
project.lock.json
2121
*.package
2222
**/.DS_Store
23-
Assets/Oculus/
24-
Assets/Oculus.meta
23+
**/Assets/Oculus/
24+
**/Assets/Oculus.meta
2525

2626
# ============ #
2727
# Certificates #

Assets/MRTK/Providers/OpenXR/Editor/OpenXRCameraSettingsProfileInspector.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,14 @@ public override void OnInspectorGUI()
4040
"Look for \"Disable First Person Observer\".", MessageType.Info);
4141

4242
#if MSFT_OPENXR
43-
mrcSettingsButtonContent ??= new GUIContent()
43+
if (mrcSettingsButtonContent == null)
4444
{
45-
image = EditorGUIUtility.IconContent("Settings").image,
46-
text = " OpenXR plug-in settings",
47-
};
45+
mrcSettingsButtonContent = new GUIContent()
46+
{
47+
image = EditorGUIUtility.IconContent("Settings").image,
48+
text = " OpenXR plug-in settings",
49+
};
50+
}
4851

4952
using (new EditorGUILayout.HorizontalScope())
5053
{

0 commit comments

Comments
 (0)