mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
Minor correction to yesterday's changes. Make normal prim crossing (no attach) work well again.
This commit is contained in:
@@ -3361,8 +3361,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
SceneObjectGroup sog = Copy(false);
|
||||
sog.m_isDeleted = false;
|
||||
sog.RootPart.IsAttachment = false;
|
||||
sog.RootPart.GroupPosition = sog.RootPart.AttachedPos;
|
||||
return sog;
|
||||
}
|
||||
|
||||
|
||||
@@ -3108,6 +3108,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// We need to make a copy and pass that copy
|
||||
// because of transfers withn the same sim
|
||||
ISceneObject clone = sog.CloneForNewScene();
|
||||
// Attachment module assumes that GroupPosition holds the offsets...!
|
||||
((SceneObjectGroup)clone).RootPart.GroupPosition = sog.RootPart.AttachedPos;
|
||||
((SceneObjectGroup)clone).RootPart.IsAttachment = false;
|
||||
cAgent.AttachmentObjects.Add(clone);
|
||||
cAgent.AttachmentObjectStates.Add(sog.GetStateSnapshot());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user