diff --git a/Editor/AutoLOD.cs b/Editor/AutoLOD.cs index cc3dea9..a9b825a 100644 --- a/Editor/AutoLOD.cs +++ b/Editor/AutoLOD.cs @@ -347,7 +347,7 @@ static void SelectAllGameObjectsUnderneathFolder(DefaultAsset folderAsset, Func< foreach (var p in prefabs) { var prefab = AssetDatabase.LoadMainAssetAtPath(AssetDatabase.GUIDToAssetPath(p)); - if (prefab && (predicate != null || predicate((GameObject)prefab))) + if (prefab && (predicate == null || predicate((GameObject)prefab))) gameObjects.Add(prefab); } Selection.objects = gameObjects.ToArray();