| 420 | } |
| 421 | |
| 422 | bool WaterObject::_setFullReflect( void *object, const char *index, const char *data ) |
| 423 | { |
| 424 | WaterObject *water = static_cast<WaterObject*>( object ); |
| 425 | water->mFullReflect = dAtob( data ); |
| 426 | |
| 427 | if ( water->isProperlyAdded() && water->isClientObject() ) |
| 428 | { |
| 429 | bool isEnabled = water->mPlaneReflector.isEnabled(); |
| 430 | |
| 431 | bool enable = water->mFullReflect && !smDisableTrueReflections; |
| 432 | |
| 433 | if ( enable && !isEnabled ) |
| 434 | water->mPlaneReflector.registerReflector( water, &water->mReflectorDesc ); |
| 435 | else if ( !enable && isEnabled ) |
| 436 | water->mPlaneReflector.unregisterReflector(); |
| 437 | } |
| 438 | |
| 439 | return false; |
| 440 | } |
| 441 | |
| 442 | bool WaterObject::_checkDensity( void *object, const char *index, const char *data ) |
| 443 | { |
nothing calls this directly
no test coverage detected