3DSLoader: Skipped chunks of size 0
parent
cc3f8b82f9
commit
35fa7cb441
|
@ -79,6 +79,8 @@ static const aiImporterDesc desc = {
|
|||
Discreet3DS::Chunk chunk; \
|
||||
ReadChunk(&chunk); \
|
||||
int chunkSize = chunk.Size-sizeof(Discreet3DS::Chunk); \
|
||||
if(chunkSize <= 0) \
|
||||
continue; \
|
||||
const int oldReadLimit = stream->GetReadLimit(); \
|
||||
stream->SetReadLimit(stream->GetCurrentPos() + chunkSize); \
|
||||
|
||||
|
|
Loading…
Reference in New Issue