FCollada changes to ptloader

This commit is contained in:
rdb 2009-01-06 18:46:11 +00:00
parent ecb6b7f507
commit 40aad1a910
2 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,7 @@
#define BUILDING_DLL BUILDING_PTLOADER
#define LOCAL_LIBS \
fltegg flt lwoegg lwo dxfegg dxf vrmlegg pvrml xfileegg xfile \
converter pandatoolbase
converter pandatoolbase $[if $[HAVE_FCOLLADA],daeegg]
#define OTHER_LIBS \
egg2pg:c egg:c pandaegg:m \
pstatclient:c mathutil:c linmath:c putil:c \

View File

@ -23,6 +23,7 @@
#include "vrmlToEggConverter.h"
#include "config_xfile.h"
#include "xFileToEggConverter.h"
#include "daeToEggConverter.h"
#include "dconfig.h"
#include "loaderFileTypeRegistry.h"
@ -79,6 +80,11 @@ init_libptloader() {
XFileToEggConverter *xfile = new XFileToEggConverter;
reg->register_type(new LoaderFileTypePandatool(xfile));
#ifdef HAVE_FCOLLADA
DAEToEggConverter *dae = new DAEToEggConverter;
reg->register_type(new LoaderFileTypePandatool(dae));
#endif
#ifdef HAVE_MAYA
// Register the Maya converter as a deferred type. We don't compile
// it in directly, because it's big and bulky; we don't need to