Skip to content

Commit 4cde8d8

Browse files
authored
Merge pull request #6455 from decentraland/hotfix/2025-12-15
Fixed problem with avatars rotating suddenly while sitting on a bench
2 parents 80bbe7b + 774708d commit 4cde8d8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Explorer/Assets/DCL/AvatarRendering/Emotes/Systems/SocialEmoteInteractionSystem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ private void WalkToInitiatorPositionBeforePlayingOutcomeAnimation(in Entity enti
194194
[None(typeof(PlayerComponent))]
195195
private void InitiatorLooksAtSocialEmoteTarget([Data] string targetWalletAddress, [Data] bool isInitiatorPlayingEmote, in CharacterTransform targetTransform, Profile targetProfile)
196196
{
197-
if (targetWalletAddress == targetProfile.UserId && isInitiatorPlayingEmote)
197+
// A remote initiator looks at the target of a directed social emote it sent
198+
if (!string.IsNullOrEmpty(targetProfile.UserId) && targetWalletAddress == targetProfile.UserId && isInitiatorPlayingEmote)
198199
World.Add(playerEntity, new PlayerLookAtIntent(targetTransform.Position));
199200
}
200201

0 commit comments

Comments
 (0)