@@ -351,20 +351,20 @@ private void DrawGUILabels()
351351 {
352352 case DebugTriangle . Index :
353353 EachIndice ( ( i , j , vert ) =>
354- DrawLabel ( vert , m_cpu . m_IndiceNormals [ i ] [ j ] , ( j + m_cpu . m_IndiceOffsets [ i ] ) )
354+ DrawLabel ( vert , m_cpu . GetIndexNormalsSafely ( i , j ) , ( j + m_cpu . m_IndiceOffsets [ i ] ) )
355355 ) ;
356356 break ;
357357 case DebugTriangle . Area :
358358 EachIndice ( ( i , j , vert ) =>
359359 {
360360 var area = m_cpu . m_IndiceAreas [ i ] [ j ] ;
361- DrawLabel ( vert , m_cpu . m_IndiceNormals [ i ] [ j ] , area . ToString ( area < 1 ? "0.00" : "0.0" ) ) ;
361+ DrawLabel ( vert , m_cpu . GetIndexNormalsSafely ( i , j ) , area . ToString ( area < 1 ? "0.00" : "0.0" ) ) ;
362362 }
363363 ) ;
364364 break ;
365365 case DebugTriangle . Submesh :
366366 EachIndice ( ( i , j , vert ) =>
367- DrawLabel ( vert , m_cpu . m_IndiceNormals [ i ] [ j ] , i )
367+ DrawLabel ( vert , m_cpu . GetIndexNormalsSafely ( i , j ) , i )
368368 ) ;
369369 break ;
370370 }
@@ -373,12 +373,12 @@ private void DrawGUILabels()
373373 {
374374 case DebugVertice . Index :
375375 EachVert ( ( i , vert ) =>
376- DrawLabel ( vert , m_cpu . m_Normals [ 0 ] [ i ] , i )
376+ DrawLabel ( vert , m_cpu . GetNormalSafely ( 0 , i ) , i )
377377 ) ;
378378 break ;
379379 case DebugVertice . Shared :
380380 EachVert ( ( i , vert ) =>
381- DrawLabel ( vert , m_cpu . m_Normals [ 0 ] [ i ] , m_cpu . m_VertUsedCounts [ i ] )
381+ DrawLabel ( vert , m_cpu . GetNormalSafely ( 0 , i ) , m_cpu . m_VertUsedCounts [ i ] )
382382 ) ;
383383 break ;
384384 case DebugVertice . Duplicates :
0 commit comments