mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
Revert a temporary attempt at fixing a crash
This commit is contained in:
1 parent
f87b06989d
commit
ca90b64378
1 file changed
+2
-12
@@ -54,19 +54,9 @@ namespace UnityExplorer.Inspectors.Reflection
|
||||
{
|
||||
var pType = param.ParameterType;
|
||||
|
||||
if (pType.IsByRef && !pType.IsPrimitive && pType != typeof(string))
|
||||
if (pType.IsByRef && pType.HasElementType)
|
||||
{
|
||||
if (pType.IsArray || pType.Name.Contains("Array"))
|
||||
return false;
|
||||
|
||||
try
|
||||
{
|
||||
pType = pType.GetElementType();
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
pType = pType.GetElementType();
|
||||
}
|
||||
|
||||
if (pType != null && (pType.IsPrimitive || pType == typeof(string)))
|
||||
|
||||
Reference in new issue
Block a user