mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Use the weight's bone index if there is no morph
This commit is contained in:
parent
e1f2433c36
commit
0181fbcfa0
1 changed files with 12 additions and 2 deletions
|
@ -1250,7 +1250,12 @@ void RB_SkelMesh( skelSurfaceGame_t *sf ) {
|
|||
morph++;
|
||||
}
|
||||
|
||||
channelNum = skelmodel->pBones[ morph->morphIndex ].channel;
|
||||
if (newVerts->numMorphs) {
|
||||
channelNum = skelmodel->pBones[morph->morphIndex].channel;
|
||||
} else {
|
||||
channelNum = skelmodel->pBones[weight->boneIndex].channel;
|
||||
}
|
||||
|
||||
boneNum = tiki->m_boneList.GetLocalFromGlobal( channelNum );
|
||||
bone = &bones[ boneNum ];
|
||||
|
||||
|
@ -1282,7 +1287,12 @@ void RB_SkelMesh( skelSurfaceGame_t *sf ) {
|
|||
morph++;
|
||||
}
|
||||
|
||||
bone = &bones[ morph->morphIndex ];
|
||||
if (newVerts->numMorphs) {
|
||||
bone = &bones[morph->morphIndex];
|
||||
} else {
|
||||
bone = &bones[weight->boneIndex];
|
||||
}
|
||||
|
||||
SkelVertGetNormal( newVerts, bone, normal );
|
||||
|
||||
for( weightNum = 0; weightNum < newVerts->numWeights; weightNum++ ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue