|
From: Charles L. <cn...@us...> - 2009-04-21 04:05:26
|
Update of /cvsroot/hgengine/Mercury/Util/B3DToHG In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv14164/B3DToHG Modified Files: Makefile anims.txt main.cpp Log Message: Fix up B3D Exporter Index: anims.txt =================================================================== RCS file: /cvsroot/hgengine/Mercury/Util/B3DToHG/anims.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** anims.txt 29 Sep 2008 21:00:43 -0000 1.1 --- anims.txt 21 Apr 2009 04:05:15 -0000 1.2 *************** *** 1,2 **** ! CROSS 7 114 5 ! WALK 210 234 2 --- 1,3 ---- ! overhand 1 35 1.5 ! walk 45 62 1.5 ! swipe 65 94 2 Index: main.cpp =================================================================== RCS file: /cvsroot/hgengine/Mercury/Util/B3DToHG/main.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** main.cpp 29 Sep 2008 21:00:45 -0000 1.1 --- main.cpp 21 Apr 2009 04:05:15 -0000 1.2 *************** *** 2,5 **** --- 2,7 ---- #include <map> #include <math.h> + #include <stdlib.h> + #include <string.h> FILE * fout; *************** *** 424,427 **** --- 426,435 ---- void WriteMats() { + if( gB3D.Textures.size() == 0 ) + { + printf( "0 textures were found. Making a fake one.\n" ); + gB3D.Textures.resize( 1 ); + gB3D.Textures[0].name = outputfname + ".png"; + } Write( gB3D.Textures.size() ); for( int i = 0; i < gB3D.Textures.size(); i++ ) Index: Makefile =================================================================== RCS file: /cvsroot/hgengine/Mercury/Util/B3DToHG/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile 29 Sep 2008 21:00:42 -0000 1.1 --- Makefile 21 Apr 2009 04:05:15 -0000 1.2 *************** *** 5,7 **** clean : ! rm *.o *~ -rf --- 5,12 ---- clean : ! rm *.o *~ -rf b3dtest ! ! export : ! ./b3dtest ../3ds_gunther/guntherAnimationsAll.b3d gunther_anim.hgmdl objdefault anims.txt ! cp gunther_anim.hgmdl ../../game/Themes/default/Models/ ! # cp gunther_anim.hgmdl0.ini ../../game/Themes/default/Models/ |