fix gpose hanging

This commit is contained in:
Stanley Dimant
2025-01-13 23:43:51 +01:00
parent cacb136161
commit 163048ac49
2 changed files with 3 additions and 2 deletions

View File

@@ -71,7 +71,8 @@ public sealed class CharaDataCharacterHandler : DisposableMediatorSubscriberBase
using var handler = await _gameObjectHandlerFactory.Create(ObjectKind.Player,
() => _dalamudUtilService.GetGposeCharacterFromObjectTableByName(name, _dalamudUtilService.IsInGpose)?.Address ?? IntPtr.Zero, false)
.ConfigureAwait(false);
await _ipcManager.Penumbra.RedrawAsync(Logger, handler, applicationId, CancellationToken.None).ConfigureAwait(false);
if (handler.Address != nint.Zero)
await _ipcManager.Penumbra.RedrawAsync(Logger, handler, applicationId, CancellationToken.None).ConfigureAwait(false);
}
public async Task<bool> RevertHandledChara(string name, bool reapplyPose = true)