[Plib-users] AC3D loader problems
Brought to you by:
sjbaker
From: <fli...@ba...> - 2004-03-26 13:22:21
|
I had a little conversation on the new AC3D Format wirh Andy Colebourne. Here is was he wrote to me (see also http://www.ac3d.org/forum/viewtopic.php?p=3D1824#1824 ) I had a quick look at the plib code. In ssg/ssgLoadAC.cxx:=20 Code:=20 static int search ( Tag *tags, char *s )=20 {=20 skip_spaces ( & s ) ;=20 for ( int i =3D 0 ; tags[i].token !=3D NULL ; i++ )=20 if ( ulStrNEqual ( tags[i].token, s, strlen(tags[i].token) ) )=20 {=20 s +=3D strlen ( tags[i].token ) ;=20 skip_spaces ( & s ) ;=20 return (*(tags[i].func))( s ) ;=20 }=20 ulSetError ( UL_FATAL, "ac_to_gl: Unrecognised token '%s'", s ) ;=20 return 0 ; /* Should never get here */=20 }=20 replace:=20 Code:=20 ulSetError ( UL_FATAL, "ac_to_gl: Unrecognised token '%s'", s ) ;=20 with:=20 Code:=20 ulSetError ( UL_WARNING, "ac_to_gl: Unrecognised token '%s'", s );=20 replace ' Code:=20 return 0;=20 ' with:=20 Code:=20 return PARSE_CONT;=20 That may fix it.=20 Andy I hope somebody can implement this. Best regards Michael B=F6lling =20 |