浏览代码

add back warning when bad face material ids are encountered.

Ben Houston 9 年之前
父节点
当前提交
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):