Mantis #2003 - thank you, SachaMagne, for a patch that implements

the first part of gesture persistence.
----------------------------------------------------------
Attachments no longer vanish on walking crossing. Teleport is still
problematic, but will now be blocked with message "Inconsistent
attachment state" rather than losing the attachment. Detach to be
able to TP in that case.
This commit is contained in:
Melanie Thielker
2008-08-20 01:48:51 +00:00
parent 2c6d8ba501
commit f206ffd5a8
8 changed files with 163 additions and 9 deletions

View File

@@ -615,6 +615,12 @@ namespace OpenSim.Region.Environment.Scenes
if (destRegionUp)
{
if(!avatar.ValidateAttachments())
{
avatar.ControllingClient.SendTeleportFailed("Inconsistent attachment state");
return;
}
avatar.Close();
// Compared to ScenePresence.CrossToNewRegion(), there's no obvious code to handle a teleport