From 3bcbc269f4b77d01af64e88ecd234ec2ff84a2b3 Mon Sep 17 00:00:00 2001 From: Silent Date: Thu, 21 Aug 2014 00:32:55 +0200 Subject: [PATCH] fixed my RpClumpRender --- SAFix/SilentPatchSA.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SAFix/SilentPatchSA.cpp b/SAFix/SilentPatchSA.cpp index b5e5012..bdb71a3 100644 --- a/SAFix/SilentPatchSA.cpp +++ b/SAFix/SilentPatchSA.cpp @@ -140,6 +140,8 @@ RpClump* RpClumpForAllAtomics(RpClump* clump, RpAtomicCallBack callback, void* p RpClump* RpClumpRender(RpClump* clump) { + RpClump* retClump = clump; + for ( RwLLLink* link = rwLinkListGetFirstLLLink(&clump->atomicList); link != rwLinkListGetTerminator(&clump->atomicList); link = rwLLLinkGetNext(link) ) { RpAtomic* curAtomic = rwLLLinkGetData(link, RpAtomic, inClumpLink); @@ -148,11 +150,10 @@ RpClump* RpClumpRender(RpClump* clump) // Not sure why they need this RwFrameGetLTM(RpAtomicGetFrame(curAtomic)); if ( !RpAtomicRender(curAtomic) ) - return NULL; + retClump = NULL; } } - return clump; - + return retClump; } RpGeometry* RpGeometryForAllMaterials(RpGeometry* geometry, RpMaterialCallBack fpCallBack, void* pData)