mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
cosmetics
This commit is contained in:
@@ -3214,16 +3214,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
AvatarPropertiesReplyPacket avatarReply = (AvatarPropertiesReplyPacket)PacketPool.Instance.GetPacket(PacketType.AvatarPropertiesReply);
|
||||
avatarReply.AgentData.AgentID = m_agentId;
|
||||
avatarReply.AgentData.AvatarID = avatarID;
|
||||
if (aboutText != null)
|
||||
avatarReply.PropertiesData.AboutText = Util.StringToBytes1024(aboutText);
|
||||
else
|
||||
avatarReply.PropertiesData.AboutText = Utils.EmptyBytes;
|
||||
avatarReply.PropertiesData.AboutText = aboutText == null ? [] : Util.StringToBytes1024(aboutText);
|
||||
avatarReply.PropertiesData.BornOn = Util.StringToBytes256(bornOn);
|
||||
avatarReply.PropertiesData.CharterMember = membershipType;
|
||||
if (flAbout != null)
|
||||
avatarReply.PropertiesData.FLAboutText = Util.StringToBytes256(flAbout);
|
||||
else
|
||||
avatarReply.PropertiesData.FLAboutText = Utils.EmptyBytes;
|
||||
avatarReply.PropertiesData.FLAboutText = flAbout == null ? [] : Util.StringToBytes256(flAbout);
|
||||
avatarReply.PropertiesData.Flags = flags;
|
||||
avatarReply.PropertiesData.FLImageID = flImageID;
|
||||
avatarReply.PropertiesData.ImageID = imageID;
|
||||
|
||||
@@ -373,11 +373,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// </returns>
|
||||
protected internal bool AddNewSceneObject(SceneObjectGroup sceneObject, bool attachToBackup, bool sendClientUpdates)
|
||||
{
|
||||
|
||||
bool ret = AddSceneObject(sceneObject, attachToBackup, sendClientUpdates);
|
||||
|
||||
// Ensure that we persist this new scene object if it's not an
|
||||
// attachment
|
||||
// Ensure that we persist this new scene object if it's not an attachment
|
||||
|
||||
if (attachToBackup)
|
||||
sceneObject.HasGroupChanged = true;
|
||||
|
||||
@@ -4046,11 +4046,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
RootPart.ScheduleFullUpdate();
|
||||
}
|
||||
|
||||
public void SetPartsInventoryChanged()
|
||||
public void SetPartsInventoryChanged(bool force = true)
|
||||
{
|
||||
SceneObjectPart[] parts = m_parts.GetArray();
|
||||
for (int i = 0; i < parts.Length; i++)
|
||||
parts[i].Inventory?.ForceInventoryPersistence();
|
||||
parts[i].Inventory?.ForceInventoryPersistence(force);
|
||||
}
|
||||
|
||||
public void UpdatePermissions(UUID AgentID, byte field, uint localID,
|
||||
|
||||
Reference in New Issue
Block a user