------------------------------------------------------------------------------------------------
| 315 | |
| 316 | // ------------------------------------------------------------------------------------------------ |
| 317 | void Exporter::SetProgressHandler(ProgressHandler* pHandler) { |
| 318 | ai_assert(nullptr != pimpl); |
| 319 | |
| 320 | if ( nullptr == pHandler) { |
| 321 | // Release pointer in the possession of the caller |
| 322 | pimpl->mProgressHandler = new DefaultProgressHandler(); |
| 323 | pimpl->mIsDefaultProgressHandler = true; |
| 324 | return; |
| 325 | } |
| 326 | |
| 327 | if (pimpl->mProgressHandler == pHandler) { |
| 328 | return; |
| 329 | } |
| 330 | |
| 331 | delete pimpl->mProgressHandler; |
| 332 | pimpl->mProgressHandler = pHandler; |
| 333 | pimpl->mIsDefaultProgressHandler = false; |
| 334 | } |
| 335 | |
| 336 | // ------------------------------------------------------------------------------------------------ |
| 337 | const aiExportDataBlob* Exporter::ExportToBlob( const aiScene* pScene, const char* pFormatId, |
no outgoing calls
no test coverage detected