JBooth.VertexPainterPro.VertexPainterWindow.InitPositions C# (CSharp) Method

InitPositions() public method

public InitPositions ( PaintJob j ) : void
j PaintJob
return void
        void InitPositions(PaintJob j)
        {
            Vector3[] pos = j.stream.positions;
             if (pos == null || pos.Length != j.verts.Length)
             {
            int vc = j.meshFilter.sharedMesh.vertexCount;
            if (j.stream.positions == null || j.stream.positions.Length != vc)
            {
               j.stream.positions = new Vector3[j.meshFilter.sharedMesh.vertices.Length];
               j.meshFilter.sharedMesh.vertices.CopyTo(j.stream.positions, 0);
            }
             }
             return;
        }