Skip to content

Commit

Permalink
Rename two private methods in AppearanceManager, GetAgentWearables() …
Browse files Browse the repository at this point in the history
…and GetAgentAttachments(), for clarity
  • Loading branch information
cinderblocks committed Jan 24, 2025
1 parent 27305af commit f56b675
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions LibreMetaverse/AppearanceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public void RequestSetAppearance(bool forceRebake = false)
cancellationToken.ThrowIfCancellationRequested();

// Retrieve the worn attachments.
if (!GetAgentAttachments())
if (!GatherAgentAttachments())
{
Logger.Log(
"Failed to retrieve a list of current agent attachments, appearance cannot be set",
Expand All @@ -508,7 +508,7 @@ public void RequestSetAppearance(bool forceRebake = false)
if (!GotWearables)
{
// Fetch a list of the current agent wearables
GotWearables = GetAgentWearables();
GotWearables = GatherAgentWearables();
}

cancellationToken.ThrowIfCancellationRequested();
Expand All @@ -530,7 +530,7 @@ public void RequestSetAppearance(bool forceRebake = false)
if (!GotWearables)
{
// Fetch a list of the current agent wearables
if (!GetAgentWearables())
if (!GatherAgentWearables())
{
Logger.Log("Failed to retrieve a list of current agent wearables, appearance cannot be set",
Helpers.LogLevel.Error, Client);
Expand Down Expand Up @@ -886,7 +886,7 @@ public void ReplaceOutfit(List<InventoryItem> wearableItems, bool safe)
}
}

if (needsCurrentWearables && !GetAgentWearables())
if (needsCurrentWearables && !GatherAgentWearables())
{
Logger.Log("Failed to fetch the current agent wearables, cannot safely replace outfit",
Helpers.LogLevel.Error);
Expand Down Expand Up @@ -1151,10 +1151,10 @@ public void Detach(UUID itemID)
}

/// <summary>
/// Retrieves the currently worn attachments.
/// Populates currently worn attachments.
/// </summary>
/// <returns>True on success receiving attachments</returns>
private bool GetAgentAttachments()
/// <returns>True on success retrieving attachments</returns>
private bool GatherAgentAttachments()
{
var objectsPrimitives = Client.Network.CurrentSim.ObjectsPrimitives;

Expand Down Expand Up @@ -1490,7 +1490,7 @@ public static Color4 GetColorFromParams(List<ColorParamInfo> param)
/// Blocking method to populate the Wearables dictionary
/// </summary>
/// <returns>True on success, otherwise false</returns>
private bool GetAgentWearables()
private bool GatherAgentWearables()
{
var wearablesEvent = new AutoResetEvent(false);
EventHandler<AgentWearablesReplyEventArgs> WearablesCallback = ((s, e) => wearablesEvent.Set());
Expand Down

0 comments on commit f56b675

Please sign in to comment.