Skip to content

Commit

Permalink
small inconsequential change that saves on one extra bank call
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed Apr 30, 2024
1 parent f20529f commit f5317eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Assets/LDtkUnity/Editor/Builders/LDtkBuilderTileset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,15 @@ private bool CanPlaceTileInLevelBounds(TileInstance tileInstance)

return rect.Contains(tileInstance.UnityPx);
}



private TilesetDefinition EvaluateTilesetDefinition()
{
if (Layer.OverrideTilesetUid != null)
{
return Layer.OverrideTilesetDefinition;
}

return Layer.Definition.TilesetDefinition;
return Layer.TilesetDefinition;
}

private Tilemap ConstructNewTilemap()
Expand Down

0 comments on commit f5317eb

Please sign in to comment.