fixed skinned cutscene head
This commit is contained in:
parent
f5345f59ea
commit
9b162554ca
@ -78,10 +78,6 @@ CClumpModelInfo::SetClump(RpClump *clump)
|
|||||||
AddTexDictionaryRef();
|
AddTexDictionaryRef();
|
||||||
RpClumpForAllAtomics(clump, SetAtomicRendererCB, nil);
|
RpClumpForAllAtomics(clump, SetAtomicRendererCB, nil);
|
||||||
|
|
||||||
// TODO: also set for player?
|
|
||||||
if(strncmp(GetName(), "playerh", 8) == 0)
|
|
||||||
RpClumpForAllAtomics(clump, SetAtomicRendererCB, (void*)CVisibilityPlugins::RenderPlayerCB);
|
|
||||||
|
|
||||||
#ifdef PED_SKIN
|
#ifdef PED_SKIN
|
||||||
if(IsClumpSkinned(clump)){
|
if(IsClumpSkinned(clump)){
|
||||||
int i;
|
int i;
|
||||||
@ -114,8 +110,12 @@ CClumpModelInfo::SetClump(RpClump *clump)
|
|||||||
weights->w3 /= sum;
|
weights->w3 /= sum;
|
||||||
}
|
}
|
||||||
RpHAnimHierarchySetFlags(hier, (RpHAnimHierarchyFlag)(rpHANIMHIERARCHYUPDATEMODELLINGMATRICES|rpHANIMHIERARCHYUPDATELTMS));
|
RpHAnimHierarchySetFlags(hier, (RpHAnimHierarchyFlag)(rpHANIMHIERARCHYUPDATEMODELLINGMATRICES|rpHANIMHIERARCHYUPDATELTMS));
|
||||||
}
|
}else
|
||||||
#endif
|
#endif
|
||||||
|
// do not set on skinned clip because cutscene head is not compatible with player head
|
||||||
|
if(strncmp(GetName(), "playerh", 8) == 0)
|
||||||
|
RpClumpForAllAtomics(clump, SetAtomicRendererCB, (void*)CVisibilityPlugins::RenderPlayerCB);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user