mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 09:58:02 +08:00
Cleanup scroll pool, fix some minor things
This commit is contained in:
1 parent
012994ed02
commit
feb86a77fd
4 files changed
+12
-17
No files matched your search
@@ -28,7 +28,6 @@ namespace UnityExplorer.UI.Widgets
|
||||
{
|
||||
this.sisterCache = sisterCache;
|
||||
|
||||
ExplorerCore.Log("Creating backup height cache, this count: " + scrollPool.DataSource.ItemCount);
|
||||
TakeFromSister(scrollPool.DataSource.ItemCount);
|
||||
}
|
||||
|
||||
@@ -79,7 +78,7 @@ namespace UnityExplorer.UI.Widgets
|
||||
|
||||
public void TakeFromSister(int count)
|
||||
{
|
||||
for (int i = 0, i < count; i++)
|
||||
for (int i = 0; i < count; i++)
|
||||
Add(sisterCache[ScrollPool.DataSource.GetRealIndexOfTempIndex(i)]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user