mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Remove the scripts of the attachments in the departing region and recreate them if fail.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user