Hi,
it seems that MD2Model.readGLCommands loops infinitely when no GL commands are defined in the file (and the GL commands offset is 0, which is the case in newest UFO: AI files).
I could overcome the problem by just not entering the GL commands loop (from line 364) if the header.numGlCommandBytes is 0 (numGlCommandBytes wasn't used anywhere before).
Just mentioning in case someone could fix/commit it in Jagatoo...
Thanks & regards
# patch for src/org/jagatoo/loaders/models/md2/MD2File.java
@@ -361,6 +361,7 @@
*/
//for ( int i = 0; i < numCommands; i++ )
+ if(header.numGlCommandBytes > 0)
while ( true )
{
int indicator = in.readInt();