Jelajahi Sumber

added some warning logs

Kacey Coley 7 tahun lalu
induk
melakukan
6c1cd7307a
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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;
                 }