public void SetupSubmeshes(aeObject abc, Mesh mesh, Material[] materials)
 {
     for (int smi = 0; smi < mesh.subMeshCount; ++smi)
     {
         abc.AddFaceSet(string.Format("submesh[{0}]", smi));
     }
 }
Exemplo n.º 2
0
 public void SetupSubmeshes(aeObject abc, Mesh mesh, Material[] materials)
 {
     if (mesh.subMeshCount > 1)
     {
         for (int smi = 0; smi < mesh.subMeshCount; ++smi)
         {
             string name;
             if (smi < materials.Length && materials[smi] != null)
             {
                 name = materials[smi].name;
             }
             else
             {
                 name = string.Format("submesh[{0}]", smi);
             }
             abc.AddFaceSet(name);
         }
     }
 }