Maybe fix animation handling after redraws (esp. for PLD with shield), maybe break everything else.

This commit is contained in:
Ottermandias 2023-01-22 16:09:46 +01:00
parent 853fe8644c
commit a9a5f91c90
3 changed files with 13 additions and 0 deletions

View file

@ -58,6 +58,12 @@ public unsafe partial class PathResolver
break;
}
if( _drawObjectState.LastGameObject != null )
{
resolveData = _drawObjectState.LastCreatedCollection;
return true;
}
resolveData = ResolveData.Invalid;
return false;
}

View file

@ -183,4 +183,10 @@ public partial class PathResolver : IDisposable
internal ResolveData CurrentAvfxData
=> _subFiles.AvfxData;
internal ResolveData LastGameObjectData
=> DrawObjects.LastCreatedCollection;
internal unsafe nint LastGameObject
=> (nint) DrawObjects.LastGameObject;
}