Skip to content

Commit

Permalink
Merge pull request AcademySoftwareFoundation#1 from dneg/houdiniguards
Browse files Browse the repository at this point in the history
Fix Houdini Guards for H15
  • Loading branch information
jmlait authored Nov 14, 2016
2 parents 86c1ea0 + 27df021 commit a7128eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openvdb_houdini/houdini/GEO_VDBTranslator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ GEO_VDBTranslator::checkMagicNumber(unsigned /*magic*/)
return 0;
}

#if (UT_VERSION_INT >= 0x10000000) // 16.0.0 or later
bool
GEO_VDBTranslator::fileStat(const char *filename, GA_Stat &stat, uint level)
{
Expand All @@ -173,7 +174,7 @@ GEO_VDBTranslator::fileStat(const char *filename, GA_Stat &stat, uint level)
bbox.makeInvalid();

// Loop over all grids in the file.
for (openvdb::io::File::NameIterator nameIter = file.beginName(); nameIter != file.endName(); ++nameIter)
for (openvdb::io::File::NameIterator nameIter = file.beginName(); nameIter != file.endName(); ++nameIter)
{
const std::string& gridName = nameIter.gridName();

Expand Down

0 comments on commit a7128eb

Please sign in to comment.