| 1557 | } |
| 1558 | |
| 1559 | bool PostEffect::_setIsEnabled( void *object, const char *index, const char *data ) |
| 1560 | { |
| 1561 | bool enabled = dAtob( data ); |
| 1562 | if ( enabled ) |
| 1563 | static_cast<PostEffect*>( object )->enable(); |
| 1564 | else |
| 1565 | static_cast<PostEffect*>( object )->disable(); |
| 1566 | |
| 1567 | // Always return false from a protected field. |
| 1568 | return false; |
| 1569 | } |
| 1570 | |
| 1571 | void PostEffect::enable() |
| 1572 | { |