Skip to content

Commit

Permalink
Removed an unnecessary error log if a layer's tileset definition was …
Browse files Browse the repository at this point in the history
…not set
  • Loading branch information
Cammin committed Apr 30, 2024
1 parent 5a79549 commit f20529f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Assets/LDtkUnity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@

- Updated the icon for AutoLayer-related content

- Removed an unnecessary error log if a layer's tileset definition was not set

- Deprecated several values in the imported components
- All deprecated values will still work the same, except for `LDtkComponentProject.FromJson` which now return null

Expand Down
2 changes: 1 addition & 1 deletion Assets/LDtkUnity/Editor/Builders/LDtkBuilderTileset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void BuildTileset(TileInstance[] tiles)
TilesetDefinition tilesetDef = EvaluateTilesetDefinition();
if (tilesetDef == null)
{
Importer.Logger.LogError($"Tileset Definition for {Layer.Identifier} was null.");
//It is possible that a layer has no tileset definition assigned. In this case, it's fine to not build any tiles.
return;
}

Expand Down

0 comments on commit f20529f

Please sign in to comment.