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
|
|
@ -100,15 +100,15 @@ GroundPlane::~GroundPlane()
|
|||
mConvexList->nukeList();
|
||||
SAFE_DELETE( mConvexList );
|
||||
}
|
||||
|
||||
FRangeValidator squareSizeRange(sMIN_SQUARE_SIZE, FLT_MAX);
|
||||
void GroundPlane::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
addGroup( "Plane" );
|
||||
|
||||
addField( "squareSize", TypeF32, Offset( mSquareSize, GroundPlane ), "Square size in meters to which %GroundPlane subdivides its geometry." );
|
||||
addField( "scaleU", TypeF32, Offset( mScaleU, GroundPlane ), "Scale of texture repeat in the U direction." );
|
||||
addField( "scaleV", TypeF32, Offset( mScaleV, GroundPlane ), "Scale of texture repeat in the V direction." );
|
||||
addFieldV( "squareSize", TypeRangedF32, Offset( mSquareSize, GroundPlane ),&squareSizeRange, "Square size in meters to which %GroundPlane subdivides its geometry." );
|
||||
addFieldV( "scaleU", TypeRangedF32, Offset( mScaleU, GroundPlane ), &CommonValidators::PositiveFloat, "Scale of texture repeat in the U direction." );
|
||||
addFieldV( "scaleV", TypeRangedF32, Offset( mScaleV, GroundPlane ), &CommonValidators::PositiveFloat, "Scale of texture repeat in the V direction." );
|
||||
|
||||
INITPERSISTFIELD_MATERIALASSET(Material, GroundPlane, "The material used to render the ground plane.");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue