use the same renderpriority range across all cases

This commit is contained in:
AzaezelX 2025-03-18 01:18:37 -05:00
parent 44b0d896b8
commit ffe83b1d2d
7 changed files with 12 additions and 12 deletions

View file

@ -315,7 +315,7 @@ void DecalRoad::initPersistFields()
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 ),
addField( "renderPriority", TypeS16, Offset( mRenderPriority, DecalRoad ),
"DecalRoad(s) are rendered in descending renderPriority order." );
endGroup( "DecalRoad" );
@ -429,7 +429,7 @@ void DecalRoad::onStaticModified( const char* slotName, const char*newValue )
if ( dStricmp( slotName, "renderPriority" ) == 0 )
{
mRenderPriority = getMax( dAtoi(newValue), (S32)1 );
mRenderPriority = getMax((S16)dAtoi(newValue), (S16)1 );
}
}