Fix for penumbra redraw: do not search for actor using object table in GetArmaturesForCharacterName
This commit is contained in:
@@ -553,16 +553,10 @@ public unsafe sealed class ArmatureManager : IDisposable
|
|||||||
|
|
||||||
private IEnumerable<Armature> GetArmaturesForCharacterName(string characterName)
|
private IEnumerable<Armature> GetArmaturesForCharacterName(string characterName)
|
||||||
{
|
{
|
||||||
var actors = _gameObjectService.FindActorsByName(characterName).ToList();
|
foreach(var kvPair in Armatures)
|
||||||
if (actors.Count == 0)
|
|
||||||
yield break;
|
|
||||||
|
|
||||||
foreach (var actorData in actors)
|
|
||||||
{
|
{
|
||||||
if (!Armatures.TryGetValue(actorData.Item1, out var armature))
|
if(kvPair.Key.ToNameWithoutOwnerName() == characterName)
|
||||||
continue;
|
yield return kvPair.Value;
|
||||||
|
|
||||||
yield return armature;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user