mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-20 03:45:26 +00:00
consolidate addfieldV method contents to avoid duplication
report *what* field is an invalid console type prune down floating point fuzzed validators to 0 default the visual fidelity to POINT_EPSILON (0.0001) rather than 1/FLT_MAX use the bit(bitcount) macro for legibility fix breakangle
This commit is contained in:
parent
47ec0cf0e1
commit
44b0d896b8
6 changed files with 42 additions and 50 deletions
|
|
@ -312,7 +312,7 @@ void DecalRoad::initPersistFields()
|
|||
addProtectedFieldV("textureLength", TypeRangedF32, Offset(mTextureLength, DecalRoad), &DecalRoad::ptSetTextureLength, &defaultProtectedGetFn, &drTextureLengthV,
|
||||
"The length in meters of textures mapped to the DecalRoad" );
|
||||
|
||||
addProtectedFieldV( "breakAngle", TypeF32, Offset( mBreakAngle, DecalRoad ), &DecalRoad::ptSetBreakAngle, &defaultProtectedGetFn, &CommonValidators::PosDegreeRange,
|
||||
addProtectedFieldV( "breakAngle", TypeRangedF32, Offset( mBreakAngle, DecalRoad ), &DecalRoad::ptSetBreakAngle, &defaultProtectedGetFn, &CommonValidators::PosDegreeRange,
|
||||
"Angle in degrees - DecalRoad will subdivided the spline if its curve is greater than this threshold." );
|
||||
|
||||
addField( "renderPriority", TypeS32, Offset( mRenderPriority, DecalRoad ),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue