mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
conform and correct gridsize
waterblock and waterplane were using two entirely different var types. by usage, those should be natural numbers
This commit is contained in:
parent
c4bbf7dac5
commit
4b54fcbe42
3 changed files with 5 additions and 5 deletions
|
|
@ -531,10 +531,10 @@ void WaterBlock::initPersistFields()
|
|||
docsURL;
|
||||
addGroup( "WaterBlock" );
|
||||
|
||||
addProtectedFieldV("gridSize", TypeRangedF32, Offset(mGridElementSize, WaterBlock), &setGridSizeProperty, &defaultProtectedGetFn, &CommonValidators::PositiveNonZeroFloat,
|
||||
addProtectedFieldV("gridSize", TypeRangedS32, Offset(mGridElementSize, WaterBlock), &setGridSizeProperty, &defaultProtectedGetFn, &CommonValidators::NaturalNumber,
|
||||
"Spacing between vertices in the WaterBlock mesh");
|
||||
|
||||
addProtectedFieldV("gridElementSize", TypeRangedF32, Offset(mGridElementSize, WaterBlock), &setGridSizeProperty, &defaultProtectedGetFn, &CommonValidators::PositiveNonZeroFloat,
|
||||
addProtectedFieldV("gridElementSize", TypeRangedS32, Offset(mGridElementSize, WaterBlock), &setGridSizeProperty, &defaultProtectedGetFn, &CommonValidators::NaturalNumber,
|
||||
"Duplicate of gridElementSize for backwards compatility");
|
||||
|
||||
Parent::initPersistFields();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue