Skip to content

Commit 91d3ea8

Browse files
committed
[ FIX ] engineReplaceAnimation fails if block is not loaded
1 parent 5966687 commit 91d3ea8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Client/mods/deathmatch/logic/CIFPEngine.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ bool CIFPEngine::EngineReplaceAnimation ( CClientEntity * pEntity, const SString
3535
std::shared_ptr < CClientIFP > pCustomIFP = g_pClientGame->GetIFPPointerFromMap ( strCustomBlockName );
3636
if ( pInternalBlock && pCustomIFP )
3737
{
38+
// Try to load the block, if it's not loaded already
39+
pInternalBlock->Request ( BLOCKING, true );
40+
3841
CAnimBlendHierarchy * pInternalAnimHierarchy = g_pGame->GetAnimManager ()->GetAnimation ( strInternalAnimName, pInternalBlock );
3942
CAnimBlendHierarchySAInterface * pCustomAnimHierarchyInterface = pCustomIFP->GetAnimationHierarchy ( strCustomAnimName );
4043
if ( pInternalAnimHierarchy && pCustomAnimHierarchyInterface )

0 commit comments

Comments
 (0)