further validator cleanups

bump default fidelity from 0,0001 to 0.01
fix F32Range. needs to go from - to +, not smallest to largest positive value
fix several misasigned validator ranges. most of which use some form of -1 default to do a Special Thing
This commit is contained in:
AzaezelX 2025-03-18 14:06:33 -05:00
parent 1ebe48edbd
commit fcd2d38deb
9 changed files with 16 additions and 16 deletions

View file

@ -66,10 +66,10 @@ void LightAnimData::initPersistFields()
addGroup( "Offset",
"The XYZ translation animation state relative to the light position." );
addArray("XYZ Pan", Axis);
addFieldV( "offsetA", TypeRangedF32, Offset( mOffset.value1, LightAnimData ), &CommonValidators::PositiveFloat, Axis,
addFieldV( "offsetA", TypeRangedF32, Offset( mOffset.value1, LightAnimData ), &CommonValidators::F32Range, Axis,
"The value of the A key in the keyframe sequence." );
addFieldV( "offsetZ", TypeRangedF32, Offset( mOffset.value2, LightAnimData ), &CommonValidators::PositiveFloat, Axis,
addFieldV( "offsetZ", TypeRangedF32, Offset( mOffset.value2, LightAnimData ), &CommonValidators::F32Range, Axis,
"The value of the Z key in the keyframe sequence." );
addFieldV( "offsetPeriod", TypeRangedF32, Offset( mOffset.period, LightAnimData ), &CommonValidators::PositiveFloat, Axis,