소스 검색

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):