Skip to content

Commit a37292d

Browse files
committed
bone_setup: set default poseparams to 0.f if default state doesnt exist
1 parent b2705ba commit a37292d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/public/bone_setup.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5074,13 +5074,13 @@ void Studio_CalcDefaultPoseParameters( const CStudioHdr *pStudioHdr, float flPos
50745074

50755075
for ( int i = 0; i < nNumParams; ++i )
50765076
{
5077-
// Default to middle of the pose parameter range
5078-
flPoseParameter[ i ] = 0.5f;
5077+
// Default to start of the pose parameter range
5078+
flPoseParameter[ i ] = 0.f;
50795079
if ( i < nPoseCount )
50805080
{
50815081
const mstudioposeparamdesc_t &Pose = ((CStudioHdr *)pStudioHdr)->pPoseParameter( i );
50825082

5083-
// Want to try for a zero state. If one doesn't exist set it to .5 by default.
5083+
// Want to try for a zero state. If one doesn't exist set it to 0.f by default.
50845084
if ( Pose.start < 0.0f && Pose.end > 0.0f )
50855085
{
50865086
float flPoseDelta = Pose.end - Pose.start;

0 commit comments

Comments
 (0)