Skip to content

Commit 55cddcd

Browse files
author
davidkline-ms
committed
Merge remote-tracking branch 'upstream/prerelease/2.5.1_upm_stabilization' into shaderImport
2 parents 285c494 + d6e5074 commit 55cddcd

File tree

6 files changed

+207
-490
lines changed

6 files changed

+207
-490
lines changed

Assets/MRTK/Core/Extensions/TypeExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static List<Type> GetAllSubClassesOf(this Type rootType, Assembly[] searc
2727

2828
Parallel.ForEach(searchAssemblies, (assembly) =>
2929
{
30-
Parallel.ForEach(assembly.GetTypes(), (type) =>
30+
Parallel.ForEach(assembly.GetLoadableTypes(), (type) =>
3131
{
3232
if (type != null && type.IsClass && !type.IsAbstract && type.IsSubclassOf(rootType))
3333
{

Assets/MRTK/Core/Inspectors/Profiles/DataProviderAccessServiceInspector.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ protected bool RenderDataProviderEntry(int index, GUIContent removeContent, Syst
167167
{
168168
using (new EditorGUILayout.HorizontalScope())
169169
{
170+
if (index < 0 || index >= providerFoldouts.Count) index = 0;
170171
providerFoldouts[index] = EditorGUILayout.Foldout(providerFoldouts[index], providerProperties.componentName.stringValue, true);
171172

172173
if (GUILayout.Button(removeContent, EditorStyles.miniButtonRight, GUILayout.Width(24f)))

0 commit comments

Comments
 (0)