From a00dc2db5d853267e0ff52fb01c448d921b4bad2 Mon Sep 17 00:00:00 2001 From: kgdev Date: Tue, 11 Oct 2022 19:47:16 +0800 Subject: [PATCH] Update AutoLOD.cs fix typo. --- Editor/AutoLOD.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();