|
|
@ -320,8 +320,9 @@ static void Mod_StudioCalcBoneAdj( float *adj, const byte *pcontroller ) |
|
|
|
if( i == STUDIO_MOUTH ) |
|
|
|
if( i == STUDIO_MOUTH ) |
|
|
|
continue; // ignore mouth
|
|
|
|
continue; // ignore mouth
|
|
|
|
|
|
|
|
|
|
|
|
if( i <= MAXSTUDIOCONTROLLERS ) |
|
|
|
if( i >= MAXSTUDIOCONTROLLERS ) |
|
|
|
{ |
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
// check for 360% wrapping
|
|
|
|
// check for 360% wrapping
|
|
|
|
if( pbonecontroller[j].type & STUDIO_RLOOP ) |
|
|
|
if( pbonecontroller[j].type & STUDIO_RLOOP ) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -333,7 +334,6 @@ static void Mod_StudioCalcBoneAdj( float *adj, const byte *pcontroller ) |
|
|
|
value = bound( 0.0f, value, 1.0f ); |
|
|
|
value = bound( 0.0f, value, 1.0f ); |
|
|
|
value = (1.0f - value) * pbonecontroller[j].start + value * pbonecontroller[j].end; |
|
|
|
value = (1.0f - value) * pbonecontroller[j].start + value * pbonecontroller[j].end; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch( pbonecontroller[j].type & STUDIO_TYPES ) |
|
|
|
switch( pbonecontroller[j].type & STUDIO_TYPES ) |
|
|
|
{ |
|
|
|
{ |
|
|
|