| 255 | } |
| 256 | |
| 257 | bool TerrainBlock::_setSquareSize( void *obj, const char *index, const char *data ) |
| 258 | { |
| 259 | TerrainBlock *terrain = static_cast<TerrainBlock*>( obj ); |
| 260 | |
| 261 | F32 newSqaureSize = dAtof( data ); |
| 262 | if ( !mIsEqual( terrain->mSquareSize, newSqaureSize ) ) |
| 263 | { |
| 264 | terrain->mSquareSize = newSqaureSize; |
| 265 | |
| 266 | if ( terrain->isServerObject() && terrain->isProperlyAdded() ) |
| 267 | terrain->_updateBounds(); |
| 268 | |
| 269 | terrain->setMaskBits( HeightMapChangeMask | SizeMask ); |
| 270 | } |
| 271 | |
| 272 | return false; |
| 273 | } |
| 274 | |
| 275 | bool TerrainBlock::_setBaseTexSize( void *obj, const char *index, const char *data ) |
| 276 | { |
nothing calls this directly
no test coverage detected