Minor correction to yesterday's changes. Make normal prim crossing (no attach) work well again.
parent
e462b926ac
commit
73caa4e94a
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue