Fix incorrect handling of GPose actors

This commit is contained in:
RisaDev
2024-09-30 22:45:41 +03:00
parent 021f4c8724
commit eea1d90986
2 changed files with 9 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ using Penumbra.GameData.Interop;
//Virtual path is full path to the profile in the virtual folders created by user in the profile list UI
using IPCProfileDataTuple = (System.Guid UniqueId, string Name, string VirtualPath, string CharacterName, bool IsEnabled);
using Penumbra.GameData.Structs;
namespace CustomizePlus.Api;
@@ -265,6 +266,9 @@ public partial class CustomizePlusIpc
if (armature.ActorIdentifier.ToNameWithoutOwnerName() != currentPlayerName)
return;
if (armature.ActorIdentifier.HomeWorld == WorldId.AnyWorld) //Cutscene/GPose actors
return;
ICharacter? localPlayerCharacter = (ICharacter?)_gameObjectService.GetDalamudGameObjectFromActor(_gameObjectService.GetLocalPlayerActor());
if (localPlayerCharacter == null)
return;