Remove the scripts of the attachments in the departing region and recreate them if fail.

This commit is contained in:
Diva Canto
2011-04-29 15:52:06 -07:00
parent 73caa4e94a
commit 0d49611f6d
2 changed files with 12 additions and 2 deletions

View File

@@ -3113,6 +3113,8 @@ namespace OpenSim.Region.Framework.Scenes
((SceneObjectGroup)clone).RootPart.IsAttachment = false;
cAgent.AttachmentObjects.Add(clone);
cAgent.AttachmentObjectStates.Add(sog.GetStateSnapshot());
// Let's remove the scripts of the original object here
sog.RemoveScriptInstances(true);
}
}
}