| 1315 | } |
| 1316 | |
| 1317 | bool PostEffect::_setIsEnabled( void *object, const char *index, const char *data ) |
| 1318 | { |
| 1319 | bool enabled = dAtob( data ); |
| 1320 | if ( enabled ) |
| 1321 | static_cast<PostEffect*>( object )->enable(); |
| 1322 | else |
| 1323 | static_cast<PostEffect*>( object )->disable(); |
| 1324 | |
| 1325 | // Always return false from a protected field. |
| 1326 | return false; |
| 1327 | } |
| 1328 | |
| 1329 | void PostEffect::enable() |
| 1330 | { |