mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +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
|
|
@ -40,6 +40,7 @@
|
|||
#include "materials/baseMatInstance.h"
|
||||
#include "environment/nodeListManager.h"
|
||||
#include "lighting/lightQuery.h"
|
||||
#include "console/typeValidators.h"
|
||||
|
||||
|
||||
extern F32 gDecalBias;
|
||||
|
|
@ -300,7 +301,7 @@ IMPLEMENT_CO_NETOBJECT_V1(DecalRoad);
|
|||
|
||||
|
||||
// ConsoleObject
|
||||
|
||||
FRangeValidator drTextureLengthV(0.1f,FLT_MAX);
|
||||
void DecalRoad::initPersistFields()
|
||||
{
|
||||
docsURL;
|
||||
|
|
@ -308,10 +309,10 @@ void DecalRoad::initPersistFields()
|
|||
|
||||
INITPERSISTFIELD_MATERIALASSET(Material, DecalRoad, "Material used for rendering.");
|
||||
|
||||
addProtectedField( "textureLength", TypeF32, Offset( mTextureLength, DecalRoad ), &DecalRoad::ptSetTextureLength, &defaultProtectedGetFn,
|
||||
addProtectedFieldV("textureLength", TypeRangedF32, Offset(mTextureLength, DecalRoad), &DecalRoad::ptSetTextureLength, &defaultProtectedGetFn, &drTextureLengthV,
|
||||
"The length in meters of textures mapped to the DecalRoad" );
|
||||
|
||||
addProtectedField( "breakAngle", TypeF32, Offset( mBreakAngle, DecalRoad ), &DecalRoad::ptSetBreakAngle, &defaultProtectedGetFn,
|
||||
addProtectedFieldV( "breakAngle", TypeF32, 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