| 501 | } |
| 502 | |
| 503 | Attachment const * Attachment::getSource( uint32_t index )const |
| 504 | { |
| 505 | if ( index > 0 && index >= source.size() ) |
| 506 | CRG_Exception( "Invalid index" ); |
| 507 | |
| 508 | if ( source.empty() ) |
| 509 | return this; |
| 510 | |
| 511 | return source[index].attach.get(); |
| 512 | } |
| 513 | |
| 514 | void Attachment::initSources() |
| 515 | { |