diff --git a/LoadOnDemand/Logic/Editor.cs b/LoadOnDemand/Logic/Editor.cs index fd3ea71..7ad668a 100644 --- a/LoadOnDemand/Logic/Editor.cs +++ b/LoadOnDemand/Logic/Editor.cs @@ -31,9 +31,9 @@ void Update() { RefAllFrom(EditorLogic.SelectedPart, usedParts); } - if (EditorLogic.startPod != null) + if (EditorLogic.RootPart != null) { - RefAllFrom(EditorLogic.startPod, usedParts); + RefAllFrom(EditorLogic.RootPart, usedParts); } HashSet unusedParts = new HashSet(referencedResources.Keys); foreach (var part in usedParts) @@ -76,7 +76,7 @@ class EditorPages : MonoBehaviour Dictionary referencedResources = new Dictionary(); HashSet PartQueueToProcess = new HashSet(); bool addPartsHasRunOnce = false; - EditorPartListFilter myPseudoFilter; + EditorPartListFilter myPseudoFilter; bool AddPartToList(AvailablePart part) { @@ -86,8 +86,8 @@ bool AddPartToList(AvailablePart part) } void SetupNew() { - myPseudoFilter = new EditorPartListFilter("LodPseudoFilter", AddPartToList); - var list = new List(); + myPseudoFilter = new EditorPartListFilter("LodPseudoFilter", AddPartToList); + var list = new List>(); foreach (var current in EditorPartList.Instance.GreyoutFilters) {