Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Commit 96a7ce6

Browse files
authored
Merge pull request #13 from mdwigley/issue#12-mdwigley
#12 Removed errant code and changed casting
2 parents 5712ad7 + 36ea9c4 commit 96a7ce6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Editor/PrefabLightmapTool.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,7 @@ protected void ToggleAllChangedEventHandler(ChangeEvent<bool> changeEvent)
310310
/// </summary>
311311
protected void UpdateListView()
312312
{
313-
List<PrefabLightmapDataItem> items = this.FindPrefabLightmapItems();
314-
315-
this.ToggleAll.value = false;
313+
List<PrefabLightmapDataItem> items = this.FindPrefabLightmapItems();
316314

317315
if (items.Count > 0)
318316
this.ToggleAll.SetEnabled(true);
@@ -463,7 +461,7 @@ protected void UpdatePrefabs()
463461
/// <returns>All currently enabled <see cref="PrefabLightmapData"/> components in the scene</returns>
464462
protected List<PrefabLightmapDataItem> FindPrefabLightmapItems()
465463
{
466-
List<PrefabLightmapDataItem> items = (List<PrefabLightmapDataItem>)this.ListViewBehaviours.itemsSource;
464+
List<PrefabLightmapDataItem> items = this.ListViewBehaviours.itemsSource as List<PrefabLightmapDataItem>;
467465

468466
PrefabLightmapData[] prefabLightmaps = GameObject.FindObjectsOfType<PrefabLightmapData>();
469467

0 commit comments

Comments
 (0)