From cca01f5cdac9ee70f0795a5ea17a0cdc82b1d7bb Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 19 Sep 2016 16:03:33 +0100 Subject: change CreatorIdentification set code --- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 40 ++++++++++------------ 1 file changed, 18 insertions(+), 22 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index fcc3463..06d767d 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -537,39 +537,29 @@ namespace OpenSim.Region.Framework.Scenes } set { + CreatorData = string.Empty; if ((value == null) || (value != null && value == string.Empty)) - { - CreatorData = string.Empty; return; - } - if (!value.Contains(";")) // plain UUID + // value is uuid or uuid;homeuri;firstname lastname + string[] parts = value.Split(';'); + if (parts.Length > 0) { + UUID uuid = UUID.Zero; - UUID.TryParse(value, out uuid); + UUID.TryParse(parts[0], out uuid); CreatorID = uuid; - } - else // [;[;name]] - { - string name = "Unknown User"; - string[] parts = value.Split(';'); - if (parts.Length >= 1) - { - UUID uuid = UUID.Zero; - UUID.TryParse(parts[0], out uuid); - CreatorID = uuid; - } - if (parts.Length >= 2) + + if (parts.Length > 1) { CreatorData = parts[1]; if (!CreatorData.EndsWith("/")) CreatorData += "/"; + if (parts.Length > 2) + CreatorData += ';' + parts[2]; + else + CreatorData += ";Unknown User"; } - if (parts.Length >= 3) - name = parts[2]; - - CreatorData += ';' + name; - } } } @@ -4653,6 +4643,12 @@ SendFullUpdateToClient(remoteClient, Position) ignores position parameter DoPhysicsPropertyUpdate(UsePhysics, false); // Update physical status. + if(UsePhysics && !SetPhantom && m_localId == ParentGroup.RootPart.LocalId && + m_vehicleParams != null && m_vehicleParams.CameraDecoupled) + AddFlag(PrimFlags.CameraDecoupled); + else + RemFlag(PrimFlags.CameraDecoupled); + if (pa.Building != building) pa.Building = building; } -- cgit v1.1