MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _setSquareSize

Method _setSquareSize

Engine/source/terrain/terrData.cpp:257–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257bool 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
275bool TerrainBlock::_setBaseTexSize( void *obj, const char *index, const char *data )
276{

Callers

nothing calls this directly

Calls 6

dAtofFunction · 0.85
mIsEqualFunction · 0.85
isServerObjectMethod · 0.80
isProperlyAddedMethod · 0.80
_updateBoundsMethod · 0.45
setMaskBitsMethod · 0.45

Tested by

no test coverage detected