| 2493 | } |
| 2494 | |
| 2495 | void SceneCache::hashSet( const Name &name, IECore::MurmurHash &h ) const |
| 2496 | { |
| 2497 | SampledSceneInterface::hashSet( name, h ); |
| 2498 | |
| 2499 | h.append( m_implementation->fileName() ); |
| 2500 | |
| 2501 | // todo move path function to Implementation base class |
| 2502 | SceneInterface::Path path; |
| 2503 | if( ReaderImplementation *reader = ReaderImplementation::reader( m_implementation.get() ) ) |
| 2504 | { |
| 2505 | reader->path( path ); |
| 2506 | } |
| 2507 | else if( WriterImplementation *writer = WriterImplementation::writer( m_implementation.get() ) ) |
| 2508 | { |
| 2509 | writer->path( path ); |
| 2510 | } |
| 2511 | |
| 2512 | h.append( &path[0], path.size() ); |
| 2513 | h.append( name ); |
| 2514 | } |
| 2515 | |
| 2516 | bool SceneCache::hasObject() const |
| 2517 | { |