mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Refactored: ExternalRepresentationUtils should be the only place where the "CreatorData" field is calculated, to ensure uniformity
Resolves http://opensimulator.org/mantis/view.php?id=6933
This commit is contained in:
@@ -2250,10 +2250,15 @@ namespace OpenSim.Framework
|
||||
{
|
||||
string[] parts = firstName.Split(new char[] { '.' });
|
||||
if (parts.Length == 2)
|
||||
return id.ToString() + ";" + agentsURI + ";" + parts[0] + " " + parts[1];
|
||||
return CalcUniversalIdentifier(id, agentsURI, parts[0] + " " + parts[1]);
|
||||
}
|
||||
return id.ToString() + ";" + agentsURI + ";" + firstName + " " + lastName;
|
||||
|
||||
return CalcUniversalIdentifier(id, agentsURI, firstName + " " + lastName);
|
||||
}
|
||||
|
||||
private static string CalcUniversalIdentifier(UUID id, string agentsURI, string name)
|
||||
{
|
||||
return id.ToString() + ";" + agentsURI + ";" + name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user