Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions LoadOnDemand/Logic/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AvailablePart> unusedParts = new HashSet<AvailablePart>(referencedResources.Keys);
foreach (var part in usedParts)
Expand Down Expand Up @@ -76,7 +76,7 @@ class EditorPages : MonoBehaviour
Dictionary<AvailablePart, Resources.IResource> referencedResources = new Dictionary<AvailablePart, Resources.IResource>();
HashSet<AvailablePart> PartQueueToProcess = new HashSet<AvailablePart>();
bool addPartsHasRunOnce = false;
EditorPartListFilter myPseudoFilter;
EditorPartListFilter<AvailablePart> myPseudoFilter;

bool AddPartToList(AvailablePart part)
{
Expand All @@ -86,8 +86,8 @@ bool AddPartToList(AvailablePart part)
}
void SetupNew()
{
myPseudoFilter = new EditorPartListFilter("LodPseudoFilter", AddPartToList);
var list = new List<EditorPartListFilter>();
myPseudoFilter = new EditorPartListFilter<AvailablePart>("LodPseudoFilter", AddPartToList);
var list = new List<EditorPartListFilter<AvailablePart>>();

foreach (var current in EditorPartList.Instance.GreyoutFilters)
{
Expand Down