Browse Source

gltf loader ignores primitives it can't load (yet) once again...

Mark Sibly 7 years ago
parent
commit
aa9b9e5107
1 changed files with 2 additions and 0 deletions
  1. 2 0
      modules/mojo3d/loader/gltf2loader.monkey2

+ 2 - 0
modules/mojo3d/loader/gltf2loader.monkey2

@@ -362,6 +362,7 @@ Class Gltf2Loader
 			For Local prim:=Eachin node.mesh.primitives
 				
 				Local pmesh:=LoadPrimitive( prim )
+				If Not pmesh Continue
 				
 				pmesh.TransformVertices( matrix )
 				
@@ -420,6 +421,7 @@ Class Gltf2Loader
 			For Local prim:=Eachin node.mesh.primitives
 				
 				Local pmesh:=LoadPrimitive( prim )
+				If Not pmesh Continue
 				
 				mesh.AddMesh( pmesh,mesh.NumMaterials )