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

Method setSnapToGrid

Engine/source/gui/editor/guiEditCtrl.cpp:2398–2403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2396//-----------------------------------------------------------------------------
2397
2398void GuiEditCtrl::setSnapToGrid(U32 gridsize)
2399{
2400 if( gridsize != 0 )
2401 gridsize = getMax( gridsize, ( U32 ) MIN_GRID_SIZE );
2402 mGridSnap.set( gridsize, gridsize );
2403}
2404
2405//-----------------------------------------------------------------------------
2406

Callers 1

DefineEngineMethodFunction · 0.80

Calls 2

getMaxFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected