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:
AzaezelX 2025-03-11 22:09:21 -05:00
parent c4bbf7dac5
commit 4b54fcbe42
3 changed files with 5 additions and 5 deletions

View file

@ -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();