Browse Source

added some warning logs

Kacey Coley 7 years ago
parent
commit
6c1cd7307a
1 changed files with 2 additions and 0 deletions
  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;
                 }