mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
refactor: begin to move attachments code into a region module
This commit is contained in:
@@ -2896,9 +2896,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
ScenePresence presence = World.GetScenePresence(m_host.OwnerID);
|
||||
|
||||
m_ScriptEngine.World.AttachObject(presence.ControllingClient,
|
||||
grp.LocalId, (uint)attachment, Quaternion.Identity,
|
||||
Vector3.Zero, false);
|
||||
IAttachmentsModule attachmentsModule = m_ScriptEngine.World.AttachmentsModule;
|
||||
if (attachmentsModule != null)
|
||||
attachmentsModule.AttachObject(
|
||||
presence.ControllingClient, grp.LocalId,
|
||||
(uint)attachment, Quaternion.Identity, Vector3.Zero, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user