瀏覽代碼

added some warning logs

Kacey Coley 7 年之前
父節點
當前提交
6c1cd7307a
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      serializers/src/OBJ/babylon.objSerializer.ts

+ 2 - 0
serializers/src/OBJ/babylon.objSerializer.ts

@@ -36,6 +36,7 @@ module BABYLON {
                 const g: Nullable<Geometry> = mesh[j].geometry;
 
                 if (!g) {
+                    Tools.Warn("No geometry is present on the mesh");
                     continue;
                 }
 
@@ -46,6 +47,7 @@ module BABYLON {
                 var curV = 0;
 
                 if (!trunkVerts || !trunkFaces) {
+                    Tools.Warn("There are no position vertices or indices on the mesh!");
                     continue;
                 }