Browse Source

Fix intermittent spawn bug

Flush the transform when avatars are explicitly spawned on load. e.g. Ahnonay quabs.
avatar-spawn
Skoader 12 years ago
parent
commit
ae8d1d39bb
  1. 2
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.cpp

2
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.cpp

@ -1302,7 +1302,7 @@ hsBool plArmatureMod::MsgReceive(plMessage* msg)
if(spawnSO) if(spawnSO)
{ {
hsMatrix44 l2w = spawnSO->GetLocalToWorld(); hsMatrix44 l2w = spawnSO->GetLocalToWorld();
plWarpMsg *warpM = TRACKED_NEW plWarpMsg(nil, GetTarget(0)->GetKey(), 0, l2w); plWarpMsg *warpM = TRACKED_NEW plWarpMsg(nil, GetTarget(0)->GetKey(), plWarpMsg::kFlushTransform, l2w);
warpM->Send(); warpM->Send();
fWaitFlags &= ~kNeedSpawn; fWaitFlags &= ~kNeedSpawn;
} }

Loading…
Cancel
Save