mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
fill in the validated variables
This commit is contained in:
parent
fa760fa746
commit
f633ef3a3d
184 changed files with 1359 additions and 1216 deletions
|
|
@ -41,6 +41,7 @@
|
|||
#include "ts/tsShapeInstance.h"
|
||||
#include "postFx/postEffect.h"
|
||||
#include "math/util/matrixSet.h"
|
||||
#include "console/typeValidators.h"
|
||||
|
||||
IMPLEMENT_CO_NETOBJECT_V1(WaterBlock);
|
||||
|
||||
|
|
@ -529,11 +530,12 @@ void WaterBlock::initPersistFields()
|
|||
{
|
||||
docsURL;
|
||||
addGroup( "WaterBlock" );
|
||||
addProtectedField( "gridElementSize", TypeF32, Offset( mGridElementSize, WaterBlock ),
|
||||
&setGridSizeProperty, &defaultProtectedGetFn, "Spacing between vertices in the WaterBlock mesh" );
|
||||
addProtectedField( "gridSize", TypeF32, Offset( mGridElementSize, WaterBlock ),
|
||||
&setGridSizeProperty, &defaultProtectedGetFn, "Duplicate of gridElementSize for backwards compatility" );
|
||||
endGroup( "WaterBlock" );
|
||||
|
||||
addProtectedFieldV("gridSize", TypeRangedF32, Offset(mGridElementSize, WaterBlock), &setGridSizeProperty, &defaultProtectedGetFn, &CommonValidators::PositiveNonZeroFloat,
|
||||
"Spacing between vertices in the WaterBlock mesh");
|
||||
|
||||
addProtectedFieldV("gridElementSize", TypeRangedF32, Offset(mGridElementSize, WaterBlock), &setGridSizeProperty, &defaultProtectedGetFn, &CommonValidators::PositiveNonZeroFloat,
|
||||
"Duplicate of gridElementSize for backwards compatility");
|
||||
|
||||
Parent::initPersistFields();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue