From c5d71238a54e3a847824e76d6699b87a18366a4a Mon Sep 17 00:00:00 2001 From: Modulus32 <46051616+Modulus32@users.noreply.github.com> Date: Fri, 26 Apr 2024 11:29:57 -0400 Subject: [PATCH] disable parallelism in generatestructuresurfaces to prevent crash for now --- .../ScenarioStructureBSPs/GenerateStructureSurfacesCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TagTool/Commands/ScenarioStructureBSPs/GenerateStructureSurfacesCommand.cs b/TagTool/Commands/ScenarioStructureBSPs/GenerateStructureSurfacesCommand.cs index 4aed87b0..4564ee85 100644 --- a/TagTool/Commands/ScenarioStructureBSPs/GenerateStructureSurfacesCommand.cs +++ b/TagTool/Commands/ScenarioStructureBSPs/GenerateStructureSurfacesCommand.cs @@ -224,10 +224,10 @@ public static void PopulateStructureSurfaceBlocks( public static List[] GenerateStructureSurfaceTriangleLists(CollisionGeometry collisionBsp, MeshData meshData) { var surfaceTriangleLists = new List[collisionBsp.Surfaces.Count]; - Parallel.For(0, collisionBsp.Surfaces.Count, surfaceIndex => + for(var surfaceIndex = 0; surfaceIndex < collisionBsp.Surfaces.Count; surfaceIndex++) { surfaceTriangleLists[surfaceIndex] = GenerateSurfaceTrianglesList(collisionBsp, surfaceIndex, meshData); - }); + }; return surfaceTriangleLists; }