mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Set the attachment data on scripted rez to allow toasters to work.
This commit is contained in:
@@ -803,6 +803,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
string xmlData = Utils.BytesToString(rezAsset.Data);
|
||||
SceneObjectGroup group = SceneObjectSerializer.FromOriginalXmlFormat(xmlData);
|
||||
|
||||
group.RootPart.AttachPoint = group.RootPart.Shape.State;
|
||||
group.RootPart.AttachOffset = group.AbsolutePosition;
|
||||
|
||||
group.ResetIDs();
|
||||
|
||||
SceneObjectPart rootPart = group.GetChildPart(group.UUID);
|
||||
|
||||
Reference in New Issue
Block a user