Skip to content

Commit 02a7331

Browse files
committed
Disable gizmos
1 parent 5f494e0 commit 02a7331

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

Assets/Scripts/TestBase.cs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ public void Build(ColorMethods colorMethod = ColorMethods.ByRole)
8080
}
8181

8282
ModifyPostOp();
83-
debugVerts = poly.Vertices.Select(v => v.Position).ToList();
84-
83+
// debugVerts = poly.Vertices.Select(v => v.Position).ToList();
84+
8585
if (FaceInset != 0)
8686
{
8787
Debug.Log($"Inset on {poly.Faces.Count} faces");
@@ -98,6 +98,7 @@ public void Build(ColorMethods colorMethod = ColorMethods.ByRole)
9898
var mesh = poly.BuildUnityMesh(meshData);
9999
if (poly.DebugVerts == null) poly.DebugVerts = new List<Vector3>();
100100
if (debugVerts != null) poly.DebugVerts.AddRange(debugVerts);
101+
debugVerts = poly.Vertices.Select(v => v.Position).ToList();
101102
poly.DebugVerts = debugVerts;
102103
if (Application.isPlaying)
103104
{
@@ -121,14 +122,14 @@ private void OnValidate()
121122

122123
private void OnDrawGizmos()
123124
{
124-
if (poly==null || poly.DebugVerts == null) return;
125-
for (int i = 0; i < poly.DebugVerts.Count; i++)
126-
{
127-
Vector3 vert = poly.DebugVerts[i];
128-
Vector3 pos = transform.TransformPoint(vert);
129-
Gizmos.color = Color.red;
130-
Gizmos.DrawWireSphere(pos, .025f);
131-
Handles.Label(pos + new Vector3(0, 0.03f, 0), i.ToString());
132-
}
125+
// if (poly==null || poly.DebugVerts == null) return;
126+
// for (int i = 0; i < poly.DebugVerts.Count; i++)
127+
// {
128+
// Vector3 vert = poly.DebugVerts[i];
129+
// Vector3 pos = transform.TransformPoint(vert);
130+
// Gizmos.color = Color.red;
131+
// Gizmos.DrawWireSphere(pos, .025f);
132+
// Handles.Label(pos + new Vector3(0, 0.03f, 0), i.ToString());
133+
// }
133134
}
134135
}

0 commit comments

Comments
 (0)