Skip to content

Commit 63c9af9

Browse files
committed
Merge branch 'master'
2 parents ffc7408 + f8c581e commit 63c9af9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

LoadOnDemand/Logic/Editor.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ void Update()
3131
{
3232
RefAllFrom(EditorLogic.SelectedPart, usedParts);
3333
}
34-
if (EditorLogic.startPod != null)
34+
if (EditorLogic.RootPart != null)
3535
{
36-
RefAllFrom(EditorLogic.startPod, usedParts);
36+
RefAllFrom(EditorLogic.RootPart, usedParts);
3737
}
3838
HashSet<AvailablePart> unusedParts = new HashSet<AvailablePart>(referencedResources.Keys);
3939
foreach (var part in usedParts)
@@ -76,7 +76,7 @@ class EditorPages : MonoBehaviour
7676
Dictionary<AvailablePart, Resources.IResource> referencedResources = new Dictionary<AvailablePart, Resources.IResource>();
7777
HashSet<AvailablePart> PartQueueToProcess = new HashSet<AvailablePart>();
7878
bool addPartsHasRunOnce = false;
79-
EditorPartListFilter myPseudoFilter;
79+
EditorPartListFilter<AvailablePart> myPseudoFilter;
8080

8181
bool AddPartToList(AvailablePart part)
8282
{
@@ -86,8 +86,8 @@ bool AddPartToList(AvailablePart part)
8686
}
8787
void SetupNew()
8888
{
89-
myPseudoFilter = new EditorPartListFilter("LodPseudoFilter", AddPartToList);
90-
var list = new List<EditorPartListFilter>();
89+
myPseudoFilter = new EditorPartListFilter<AvailablePart>("LodPseudoFilter", AddPartToList);
90+
var list = new List<EditorPartListFilter<AvailablePart>>();
9191

9292
foreach (var current in EditorPartList.Instance.GreyoutFilters)
9393
{

0 commit comments

Comments
 (0)