fix CMDLPanel setting unencoded pose param values

This commit is contained in:
copperpixel
2025-10-25 22:43:50 +02:00
committed by EricS-Valve
parent a36ead80b3
commit 0379125987

View File

@@ -586,7 +586,9 @@ bool CMDLPanel::SetPoseParameterByName( const char *pszName, float fValue )
const mstudioposeparamdesc_t &Pose = studioHdr.pPoseParameter( i );
if ( V_strcasecmp( pszName, Pose.pszName() ) == 0 )
{
m_PoseParameters[ i ] = fValue;
float ctlValue;
Studio_SetPoseParameter( &studioHdr, i, fValue, ctlValue );
m_PoseParameters[ i ] = ctlValue;
return true;
}
}