Exemplo n.º 1
0
 public void TryCreateFace()
 {
     if (selectionMode == 0)
     {
         List <Vertex> selVertsList = selMesh.selVerts.ToList();
         if (selVertsList.Count >= 3)
         {
             selMesh.CreateFace(selVertsList, doReconstruct: true);
             transformGizmo.OnSelectionChange();
             SaveUndoState();
         }
         else
         {
             Debug.Log("Must have at least 3 vertices selected to create face");
         }
     }
     else
     {
         Debug.Log("Must be in vert selection mode to create face");
     }
 }