Просмотр исходного кода

add back warning when bad face material ids are encountered.

Ben Houston 9 лет назад
Родитель
Сommit
285935e8e5
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      utils/exporters/blender/addons/io_three/exporter/api/mesh.py

+ 2 - 4
utils/exporters/blender/addons/io_three/exporter/api/mesh.py

@@ -342,11 +342,9 @@ def faces(mesh, options, material_list=None):
                     face_data.append(mat_index)
                     break
             else:
+                logger.warning("Could not map the material index "
+                         "for face %d" % face.index);
                 face_data.append(0)  # default to index zero if there's a bad material
-                #################################
-                # IMPORTANT:
-                # this fix is to foolproof the export, might not be necessary to send it to THREE.js
-                #################################
 
         if uv_indices:
             for index, uv_layer in enumerate(uv_indices):