| 431 | } |
| 432 | |
| 433 | bool WaterObject::_setFullReflect( void *object, const char *index, const char *data ) |
| 434 | { |
| 435 | WaterObject *water = static_cast<WaterObject*>( object ); |
| 436 | water->mFullReflect = dAtob( data ); |
| 437 | |
| 438 | if ( water->isProperlyAdded() && water->isClientObject() ) |
| 439 | { |
| 440 | bool isEnabled = water->mPlaneReflector.isEnabled(); |
| 441 | |
| 442 | bool enable = water->mFullReflect && smEnableTrueReflections; |
| 443 | |
| 444 | if ( enable && !isEnabled ) |
| 445 | water->mPlaneReflector.registerReflector( water, &water->mReflectorDesc ); |
| 446 | else if ( !enable && isEnabled ) |
| 447 | water->mPlaneReflector.unregisterReflector(); |
| 448 | } |
| 449 | |
| 450 | return false; |
| 451 | } |
| 452 | |
| 453 | bool WaterObject::_checkDensity( void *object, const char *index, const char *data ) |
| 454 | { |
nothing calls this directly
no test coverage detected