Skip to content

Commit 39d319a

Browse files
committed
Access the passed in type instead of spelunking the serialization
1 parent 3659ce3 commit 39d319a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ protected bool RenderDataProviderEntry(int index, GUIContent removeContent, Syst
162162

163163
var serviceType = GetDataProviderConfiguration(index).ComponentType;
164164

165-
166-
SerializedProperty typeProperty = providerProperties.componentType.FindPropertyRelative("reference");
167-
if (!string.IsNullOrEmpty(typeProperty.stringValue) && Type.GetType(typeProperty.stringValue) == null && !MixedRealityProjectPreferences.ShowNullDataProviders)
165+
if (serviceType?.Type == null && !MixedRealityProjectPreferences.ShowNullDataProviders)
168166
{
169167
return false;
170168
}

0 commit comments

Comments
 (0)