Changed code to be compliant to .Net Framework 4.8.

This commit is contained in:
2020-02-29 01:53:06 -05:00
parent c5f281c5e0
commit 719ae11cb0
2 changed files with 9 additions and 5 deletions

View File

@@ -86,8 +86,12 @@ namespace RecrownedGTK.Tools.TextureAtlas
masterNode.region.Height = TextureLength;
Queue<ImageHandler> imageHandlerQueue = new Queue<ImageHandler>(imageHandlers);
ImageHandler imageHandler;
while (imageHandlerQueue.TryDequeue(out imageHandler))
while (imageHandlerQueue.Count != 0)
{
imageHandler = imageHandlerQueue.Dequeue();
Node activeNode = null;
activeNode = masterNode.InsertImageHandler(imageHandler);
if (activeNode == null)