| 114 | } |
| 115 | |
| 116 | bool IECoreUSD::ObjectAlgo::writeObject( const IECore::Object *object, const pxr::UsdStagePtr &stage, const pxr::SdfPath &path, pxr::UsdTimeCode time ) |
| 117 | { |
| 118 | const auto &w = writers(); |
| 119 | auto it = w.find( object->typeId() ); |
| 120 | if( it == w.end() ) |
| 121 | { |
| 122 | return false; |
| 123 | } |
| 124 | return it->second( object, stage, path, time ); |
| 125 | } |