Skip to content

Commit

Permalink
stopped calling the function that tries to cache the int grid value g…
Browse files Browse the repository at this point in the history
…roup definitions
  • Loading branch information
Cammin committed Sep 29, 2023
1 parent ddfec67 commit 9101a6f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Assets/LDtkUnity/Runtime/Tools/Bank/LDtkDictionaryUId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ private void CacheLayerDefs(LayerDefinition[] layerDefs)
{
TryAdd(layerDefs);

//we probably dont need to cache this? It was causing problems
//CacheIntGridValueGroupDefinitions(layerDefs);
}

private void CacheIntGridValueGroupDefinitions(LayerDefinition[] layerDefs)
{
List<IntGridValueGroupDefinition> defs = new List<IntGridValueGroupDefinition>();
foreach (LayerDefinition layerDef in layerDefs)
{
Expand All @@ -51,6 +57,7 @@ private void CacheLayerDefs(LayerDefinition[] layerDefs)
{
continue;
}

foreach (IntGridValueGroupDefinition group in layerDef.IntGridValuesGroups)
{
defs.Add(group);
Expand Down

0 comments on commit 9101a6f

Please sign in to comment.