mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Change AttachmentsModule.DetachSingleAttachmentToInv() to accept a SOG directly instead of an item ID to then shuffle through attachments, saving CPU busywork.
Almost all callers already had the sog to hand. Still checking that it's really an attachment, but now by inspecting SOG.AttachedAvatar
This commit is contained in:
@@ -72,6 +72,10 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||
/// <returns></returns>
|
||||
List<SceneObjectGroup> GetAttachments(uint attachmentPoint);
|
||||
|
||||
/// <summary>
|
||||
/// Does this avatar have any attachments?
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool HasAttachments();
|
||||
|
||||
// Don't use these methods directly. Instead, use the AttachmentsModule
|
||||
|
||||
Reference in New Issue
Block a user