@@ -80,8 +80,8 @@ public void Build(ColorMethods colorMethod = ColorMethods.ByRole)
80
80
}
81
81
82
82
ModifyPostOp ( ) ;
83
- debugVerts = poly . Vertices . Select ( v => v . Position ) . ToList ( ) ;
84
-
83
+ // debugVerts = poly.Vertices.Select(v => v.Position).ToList();
84
+
85
85
if ( FaceInset != 0 )
86
86
{
87
87
Debug . Log ( $ "Inset on { poly . Faces . Count } faces") ;
@@ -98,6 +98,7 @@ public void Build(ColorMethods colorMethod = ColorMethods.ByRole)
98
98
var mesh = poly . BuildUnityMesh ( meshData ) ;
99
99
if ( poly . DebugVerts == null ) poly . DebugVerts = new List < Vector3 > ( ) ;
100
100
if ( debugVerts != null ) poly . DebugVerts . AddRange ( debugVerts ) ;
101
+ debugVerts = poly . Vertices . Select ( v => v . Position ) . ToList ( ) ;
101
102
poly . DebugVerts = debugVerts ;
102
103
if ( Application . isPlaying )
103
104
{
@@ -121,14 +122,14 @@ private void OnValidate()
121
122
122
123
private void OnDrawGizmos ( )
123
124
{
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
+ // }
133
134
}
134
135
}
0 commit comments