add path
parent
7ae80e0319
commit
dddc4d155b
|
@ -0,0 +1,33 @@
|
|||
From 8fb0b4b9b2a6b209fa34097b0284112abbbcae97 Mon Sep 17 00:00:00 2001
|
||||
From: Christopher <git@clatza.dev>
|
||||
Date: Sun, 28 Jun 2020 01:19:29 +0200
|
||||
Subject: [PATCH] fix npe
|
||||
|
||||
---
|
||||
.../Region/PhysicsModules/Meshing/Meshmerizer/Mesh.cs | 10 +++++++---
|
||||
1 file changed, 7 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/OpenSim/Region/PhysicsModules/Meshing/Meshmerizer/Mesh.cs b/OpenSim/Region/PhysicsModules/Meshing/Meshmerizer/Mesh.cs
|
||||
index 42ba37e585..0cec93760e 100644
|
||||
--- a/OpenSim/Region/PhysicsModules/Meshing/Meshmerizer/Mesh.cs
|
||||
+++ b/OpenSim/Region/PhysicsModules/Meshing/Meshmerizer/Mesh.cs
|
||||
@@ -284,9 +284,13 @@ namespace OpenSim.Region.PhysicsModule.Meshing
|
||||
for (int i = 0; i < m_triangles.Count; i++)
|
||||
{
|
||||
Triangle t = m_triangles[i];
|
||||
- result[3 * i + 0] = m_vertices[t.v1];
|
||||
- result[3 * i + 1] = m_vertices[t.v2];
|
||||
- result[3 * i + 2] = m_vertices[t.v3];
|
||||
+
|
||||
+ if(t != null)
|
||||
+ {
|
||||
+ result[3 * i + 0] = m_vertices[t.v1];
|
||||
+ result[3 * i + 1] = m_vertices[t.v2];
|
||||
+ result[3 * i + 2] = m_vertices[t.v3];
|
||||
+ }
|
||||
}
|
||||
return result;
|
||||
}
|
||||
--
|
||||
2.27.0.windows.1
|
||||
|
Loading…
Reference in New Issue