| 406 | } |
| 407 | |
| 408 | openvdb::GridBase::Ptr VDBObject::HashedGrid::grid() const |
| 409 | { |
| 410 | auto tmp = m_lockedFile; |
| 411 | if ( tmp && tmp->file ) |
| 412 | { |
| 413 | std::lock_guard<std::recursive_mutex> l( tmp->mutex ); |
| 414 | |
| 415 | m_grid = tmp->file->readGrid( m_grid->getName() ); |
| 416 | m_lockedFile.reset(); |
| 417 | } |
| 418 | return m_grid; |
| 419 | } |
| 420 | |
| 421 | IECore::MurmurHash VDBObject::HashedGrid::hash() const |
| 422 | { |