public static bool IsValidPreviewGameObject(GameObject target, ModelImporterAnimationType requiredClipType)
{
if ((Object)target != (Object)null && !target.activeSelf)
{
Debug.LogWarning((object)"Can't preview inactive object, using fallback object");
}
if ((Object)target != (Object)null && target.activeSelf && GameObjectInspector.HasRenderablePartsRecurse(target))
{
return((requiredClipType == ModelImporterAnimationType.None ? 0 : (AvatarPreview.GetAnimationType(target) != requiredClipType ? 1 : 0)) == 0);
}
return(false);
}