Permalink
Browse files

Bugfix: compute correct file offsets when extheadersize is different …

…than expected.
  • Loading branch information...
1 parent 77a67f3 commit fd01d0f43ed5c90279ec8d793914cfe6baf04f55 Brent Burley committed Dec 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ptex/PtexReader.cpp
@@ -93,7 +93,7 @@ bool PtexReader::open(const char* path, Ptex::String& error)
readBlock(&_extheader, PtexUtils::min(uint32_t(ExtHeaderSize), _header.extheadersize));
// compute offsets of various blocks
- FilePos pos = tell();
+ FilePos pos = HeaderSize + _header.extheadersize;
_faceinfopos = pos; pos += _header.faceinfosize;
_constdatapos = pos; pos += _header.constdatasize;
_levelinfopos = pos; pos += _header.levelinfosize;

0 comments on commit fd01d0f

Please sign in to comment.