Skip to content

Commit

Permalink
fix: Remove unnessesary disposal of a NativeArray to fix a tileset im…
Browse files Browse the repository at this point in the history
…port exception in older unity versions
  • Loading branch information
Cammin committed May 26, 2024
1 parent 682fa84 commit 51976b7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ private bool PrepareAndGenerateTexture(TextureImporterPlatformSettings platformS
LDtkProfiler.BeginSample("handle.Complete");
handle.Complete();
LDtkProfiler.EndSample();

job.Pixels.Dispose();

_validIds = job.TileIdsWithPixels;

//GOAL: prepare only the sprites that matter for the texture generation
Expand Down

0 comments on commit 51976b7

Please sign in to comment.