Browse Source

I did it wrooong

Florian Meißner 11 years ago
parent
commit
7a59dbae41
  1. 6
      Sources/Plasma/FeatureLib/pfPython/cyAvatar.cpp

6
Sources/Plasma/FeatureLib/pfPython/cyAvatar.cpp

@ -374,10 +374,12 @@ bool cyAvatar::RunCoopAnim(pyKey& targetKey, plString activeAvatarAnim, plString
// get the participating avatars // get the participating avatars
plArmatureMod* activeAv = plAvatarMgr::FindAvatar(fRecvr[0]); plArmatureMod* activeAv = plAvatarMgr::FindAvatar(fRecvr[0]);
plArmatureMod* targetAv = plAvatarMgr::FindAvatar(targetKey.getKey()); plArmatureMod* targetAv = plAvatarMgr::FindAvatar(targetKey.getKey());
activeAvatarAnim = activeAv->MakeAnimationName(activeAvatarAnim);
targetAvatarAnim = targetAv->MakeAnimationName(targetAvatarAnim);
if (activeAv && targetAv) { 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 // set seek position and rotation of the avatars
hsPoint3 avPos, targetPos; hsPoint3 avPos, targetPos;
activeAv->GetPositionAndRotationSim(&avPos, nullptr); activeAv->GetPositionAndRotationSim(&avPos, nullptr);

Loading…
Cancel
Save