From 7a59dbae4190d23ec5098afebe9fad069d66ee75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Mei=C3=9Fner?= Date: Sun, 2 Feb 2014 09:40:32 +0100 Subject: [PATCH] I did it wrooong --- Sources/Plasma/FeatureLib/pfPython/cyAvatar.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/FeatureLib/pfPython/cyAvatar.cpp b/Sources/Plasma/FeatureLib/pfPython/cyAvatar.cpp index 0708e757..ff3e3b0f 100644 --- a/Sources/Plasma/FeatureLib/pfPython/cyAvatar.cpp +++ b/Sources/Plasma/FeatureLib/pfPython/cyAvatar.cpp @@ -374,10 +374,12 @@ bool cyAvatar::RunCoopAnim(pyKey& targetKey, plString activeAvatarAnim, plString // get the participating avatars plArmatureMod* activeAv = plAvatarMgr::FindAvatar(fRecvr[0]); plArmatureMod* targetAv = plAvatarMgr::FindAvatar(targetKey.getKey()); - activeAvatarAnim = activeAv->MakeAnimationName(activeAvatarAnim); - targetAvatarAnim = targetAv->MakeAnimationName(targetAvatarAnim); if (activeAv && targetAv) { + // build the gender-specific animation name + activeAvatarAnim = activeAv->MakeAnimationName(activeAvatarAnim); + targetAvatarAnim = targetAv->MakeAnimationName(targetAvatarAnim); + // set seek position and rotation of the avatars hsPoint3 avPos, targetPos; activeAv->GetPositionAndRotationSim(&avPos, nullptr);