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
|
|
@ -933,6 +933,7 @@ MeshRoad::~MeshRoad()
|
|||
mConvexList = NULL;
|
||||
}
|
||||
|
||||
FRangeValidator mrTextureLengthV(0.1f, FLT_MAX);
|
||||
void MeshRoad::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
|
|
@ -942,13 +943,13 @@ void MeshRoad::initPersistFields()
|
|||
INITPERSISTFIELD_MATERIALASSET(BottomMaterial, MeshRoad, "Material for the bottom surface of the road.");
|
||||
INITPERSISTFIELD_MATERIALASSET(SideMaterial, MeshRoad, "Material for the side surface of the road.");
|
||||
|
||||
addField( "textureLength", TypeF32, Offset( mTextureLength, MeshRoad ),
|
||||
addFieldV( "textureLength", TypeRangedF32, Offset( mTextureLength, MeshRoad ), &mrTextureLengthV,
|
||||
"The length in meters of textures mapped to the MeshRoad." );
|
||||
|
||||
addField( "breakAngle", TypeF32, Offset( mBreakAngle, MeshRoad ),
|
||||
addFieldV( "breakAngle", TypeRangedF32, Offset( mBreakAngle, MeshRoad ), &CommonValidators::PosDegreeRange,
|
||||
"Angle in degrees - MeshRoad will subdivide the spline if its curve is greater than this threshold." );
|
||||
|
||||
addField( "widthSubdivisions", TypeS32, Offset( mWidthSubdivisions, MeshRoad ),
|
||||
addFieldV( "widthSubdivisions", TypeRangedS32, Offset( mWidthSubdivisions, MeshRoad ), &CommonValidators::PositiveInt,
|
||||
"Subdivide segments widthwise this many times when generating vertices." );
|
||||
|
||||
endGroup( "MeshRoad" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue