mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-02-07 18:34:09 +05:00
fixed my RpClumpRender
This commit is contained in:
parent
290f0b36cd
commit
3bcbc269f4
1 changed files with 4 additions and 3 deletions
|
@ -140,6 +140,8 @@ RpClump* RpClumpForAllAtomics(RpClump* clump, RpAtomicCallBack callback, void* p
|
||||||
|
|
||||||
RpClump* RpClumpRender(RpClump* clump)
|
RpClump* RpClumpRender(RpClump* clump)
|
||||||
{
|
{
|
||||||
|
RpClump* retClump = clump;
|
||||||
|
|
||||||
for ( RwLLLink* link = rwLinkListGetFirstLLLink(&clump->atomicList); link != rwLinkListGetTerminator(&clump->atomicList); link = rwLLLinkGetNext(link) )
|
for ( RwLLLink* link = rwLinkListGetFirstLLLink(&clump->atomicList); link != rwLinkListGetTerminator(&clump->atomicList); link = rwLLLinkGetNext(link) )
|
||||||
{
|
{
|
||||||
RpAtomic* curAtomic = rwLLLinkGetData(link, RpAtomic, inClumpLink);
|
RpAtomic* curAtomic = rwLLLinkGetData(link, RpAtomic, inClumpLink);
|
||||||
|
@ -148,11 +150,10 @@ RpClump* RpClumpRender(RpClump* clump)
|
||||||
// Not sure why they need this
|
// Not sure why they need this
|
||||||
RwFrameGetLTM(RpAtomicGetFrame(curAtomic));
|
RwFrameGetLTM(RpAtomicGetFrame(curAtomic));
|
||||||
if ( !RpAtomicRender(curAtomic) )
|
if ( !RpAtomicRender(curAtomic) )
|
||||||
return NULL;
|
retClump = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return clump;
|
return retClump;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RpGeometry* RpGeometryForAllMaterials(RpGeometry* geometry, RpMaterialCallBack fpCallBack, void* pData)
|
RpGeometry* RpGeometryForAllMaterials(RpGeometry* geometry, RpMaterialCallBack fpCallBack, void* pData)
|
||||||
|
|
Loading…
Reference in a new issue