mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 22:42:09 +00:00
Fix IQM comments refering to IQM_BYTE instead of IQM_UBYTE
This commit is contained in:
parent
c28fabf505
commit
f55bb272b6
2 changed files with 2 additions and 2 deletions
|
@ -628,7 +628,7 @@ typedef struct {
|
||||||
// depending upon the exporter, blend indices and weights might be int/float
|
// depending upon the exporter, blend indices and weights might be int/float
|
||||||
// as opposed to the recommended byte/byte, for example Noesis exports
|
// as opposed to the recommended byte/byte, for example Noesis exports
|
||||||
// int/float whereas the official IQM tool exports byte/byte
|
// int/float whereas the official IQM tool exports byte/byte
|
||||||
byte blendWeightsType; // IQM_BYTE or IQM_FLOAT
|
byte blendWeightsType; // IQM_UBYTE or IQM_FLOAT
|
||||||
|
|
||||||
int *jointParents;
|
int *jointParents;
|
||||||
float *jointMats;
|
float *jointMats;
|
||||||
|
|
|
@ -1056,7 +1056,7 @@ void RB_IQMSurfaceAnim( surfaceType_t *surface ) {
|
||||||
for ( numWeights = 0; numWeights < 4; numWeights++ ) {
|
for ( numWeights = 0; numWeights < 4; numWeights++ ) {
|
||||||
if ( data->blendWeightsType == IQM_FLOAT )
|
if ( data->blendWeightsType == IQM_FLOAT )
|
||||||
blendWeights[numWeights] = data->blendWeights.f[4*vtx + numWeights];
|
blendWeights[numWeights] = data->blendWeights.f[4*vtx + numWeights];
|
||||||
else // IQM_BYTE
|
else
|
||||||
blendWeights[numWeights] = (float)data->blendWeights.b[4*vtx + numWeights] / 255.0f;
|
blendWeights[numWeights] = (float)data->blendWeights.b[4*vtx + numWeights] / 255.0f;
|
||||||
|
|
||||||
if ( blendWeights[numWeights] <= 0 )
|
if ( blendWeights[numWeights] <= 0 )
|
||||||
|
|
Loading…
Reference in a new issue