cosmetics

This commit is contained in:
UbitUmarov
2026-01-25 21:05:54 +00:00
parent 25ad17d068
commit bd1e32546f
3 changed files with 5 additions and 13 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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,