Update SMDLoader.cpp
parent
7b24437f06
commit
12b01dd575
|
@ -81,15 +81,15 @@ static const aiImporterDesc desc = {
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Constructor to be privately used by Importer
|
// Constructor to be privately used by Importer
|
||||||
SMDImporter::SMDImporter()
|
SMDImporter::SMDImporter() :
|
||||||
: configFrameID()
|
configFrameID(),
|
||||||
, mBuffer()
|
mBuffer(),
|
||||||
, pScene( nullptr )
|
pScene( nullptr ),
|
||||||
, iFileSize( 0 )
|
iFileSize( 0 ),
|
||||||
, iSmallestFrame( INT_MAX )
|
iSmallestFrame( INT_MAX ),
|
||||||
, dLengthOfAnim( 0.0 )
|
dLengthOfAnim( 0.0 ),
|
||||||
, bHasUVs(false )
|
bHasUVs(false ),
|
||||||
, iLineNumber((unsigned int)-1) {
|
iLineNumber((unsigned int)-1) {
|
||||||
// empty
|
// empty
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,8 +101,8 @@ SMDImporter::~SMDImporter() {
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
// Returns whether the class can handle the format of the given file.
|
// Returns whether the class can handle the format of the given file.
|
||||||
bool SMDImporter::CanRead( const std::string& /*pFile*/, IOSystem* /*pIOHandler*/, bool) const {
|
bool SMDImporter::CanRead( const std::string& filename, IOSystem* /*pIOHandler*/, bool) const {
|
||||||
return SimpleExtensionCheck(pFile,"smd","vta");
|
return SimpleExtensionCheck(filename, "smd", "vta");
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue