فهرست منبع

Fix null access on some models computing logicNormal buffer.

clementlandrin 2 سال پیش
والد
کامیت
58ee4b19c5
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      hxd/fmt/fbx/HMDOut.hx

+ 5 - 1
hxd/fmt/fbx/HMDOut.hx

@@ -157,9 +157,13 @@ class HMDOut extends BaseLibrary {
 			}
 		}
 		var realIdx = new hxd.IndexBuffer();
-		for( idx in idx )
+		for( idx in idx ) {
+			if ( idx == null )
+				trace("Empty list of vertex indexes");
 			for( i in idx )
 				realIdx.push(pmap[i]);
+		}
+			
 
 		var poly = new h3d.prim.Polygon(points, realIdx);
 		poly.addNormals();