mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
use the same renderpriority range across all cases
This commit is contained in:
parent
44b0d896b8
commit
ffe83b1d2d
7 changed files with 12 additions and 12 deletions
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue