Fix crash on login/logout?

This commit is contained in:
RisaDev
2025-07-25 02:19:48 +03:00
parent 8c59e1b3ad
commit 8b3220cba6
3 changed files with 5 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ public class BoneEditorPanel
if (ImGuiUtil.DrawDisabledButton("Apply to mannequin", buttonWidth, string.Empty, !_actorAssignmentUi.CanSetMannequin))
_editorManager.ChangeEditorCharacter(_actorAssignmentUi.MannequinIdentifier);
var currentPlayer = _gameObjectService.GetCurrentPlayerActorIdentifier();
var currentPlayer = _gameObjectService.GetCurrentPlayerActorIdentifier().CreatePermanent();
if (ImGuiUtil.DrawDisabledButton("Apply to current character", buttonWidth, string.Empty, !currentPlayer.IsValid))
_editorManager.ChangeEditorCharacter(currentPlayer);