syntax
parent
7925dcadba
commit
aa5c1a1a23
|
@ -642,9 +642,10 @@ const aiScene* Importer::ReadFile( const char* _pFile, unsigned int pFlags)
|
||||||
|
|
||||||
// Get file size for progress handler
|
// Get file size for progress handler
|
||||||
IOStream * fileIO = pimpl->mIOHandler->Open( pFile );
|
IOStream * fileIO = pimpl->mIOHandler->Open( pFile );
|
||||||
|
uint32_t fileSize = 0;
|
||||||
if (fileIO)
|
if (fileIO)
|
||||||
{
|
{
|
||||||
uint32_t fileSize = fileIO->FileSize();
|
fileSize = fileIO->FileSize();
|
||||||
pimpl->mIOHandler->Close( fileIO );
|
pimpl->mIOHandler->Close( fileIO );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue