From 1a8d08d519debd5e428265c412e4278936a81cc0 Mon Sep 17 00:00:00 2001
From: bart <bart.knuiman@wur.nl>
Date: Wed, 15 Mar 2023 14:55:45 +0100
Subject: [PATCH] cancelToken added in upper for loop

---
 Runtime/VectorTile.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Runtime/VectorTile.cs b/Runtime/VectorTile.cs
index 6b418c7..6288f8c 100644
--- a/Runtime/VectorTile.cs
+++ b/Runtime/VectorTile.cs
@@ -349,7 +349,7 @@ namespace Wander
             List<QuadTreeNode> stack = new List<QuadTreeNode>();
 
             // For each pixel.
-            for (int y = 0;y < resolution ;y++)
+            for (int y = 0;y < resolution && !cancelToken;y++)
             {
                 for (int x = 0;x < resolution && !cancelToken ;x++)
                 {
-- 
GitLab