diff options
author | UbitUmarov | 2016-08-28 04:43:44 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-28 04:43:44 +0100 |
commit | 03dba18bb6e5428ccd4970aa66c4a96a8220bf15 (patch) | |
tree | df9501ad9e133e64ea8d20cc1a94676ca69369c2 | |
parent | missing file (diff) | |
download | opensim-SC-03dba18bb6e5428ccd4970aa66c4a96a8220bf15.zip opensim-SC-03dba18bb6e5428ccd4970aa66c4a96a8220bf15.tar.gz opensim-SC-03dba18bb6e5428ccd4970aa66c4a96a8220bf15.tar.bz2 opensim-SC-03dba18bb6e5428ccd4970aa66c4a96a8220bf15.tar.xz |
let mouse steer work on crossings; some cleanup
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 12 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 8 |
3 files changed, 8 insertions, 13 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 02614bd..9b7374c 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -2176,7 +2176,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2176 | // Apply physics to the root prim | 2176 | // Apply physics to the root prim |
2177 | m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_rootPart.VolumeDetectActive, true); | 2177 | m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_rootPart.VolumeDetectActive, true); |
2178 | 2178 | ||
2179 | |||
2180 | for (int i = 0; i < parts.Length; i++) | 2179 | for (int i = 0; i < parts.Length; i++) |
2181 | { | 2180 | { |
2182 | SceneObjectPart part = parts[i]; | 2181 | SceneObjectPart part = parts[i]; |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index f7f1835..dd20a2f 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -2162,13 +2162,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2162 | { | 2162 | { |
2163 | AddToPhysics(isPhysical, isPhantom, building, isPhysical); | 2163 | AddToPhysics(isPhysical, isPhantom, building, isPhysical); |
2164 | UpdatePhysicsSubscribedEvents(); // not sure if appliable here | 2164 | UpdatePhysicsSubscribedEvents(); // not sure if appliable here |
2165 | if(!_VolumeDetectActive && | ||
2166 | m_vehicleParams != null && | ||
2167 | m_vehicleParams.CameraDecoupled && | ||
2168 | m_localId == ParentGroup.RootPart.LocalId) | ||
2169 | AddFlag(PrimFlags.CameraDecoupled); | ||
2170 | else | ||
2171 | RemFlag(PrimFlags.CameraDecoupled); | ||
2172 | } | 2165 | } |
2173 | else | 2166 | else |
2174 | { | 2167 | { |
@@ -4673,11 +4666,6 @@ SendFullUpdateToClient(remoteClient, Position) ignores position parameter | |||
4673 | 4666 | ||
4674 | if (ParentGroup != null) | 4667 | if (ParentGroup != null) |
4675 | { | 4668 | { |
4676 | if(UsePhysics && !SetPhantom && m_localId == ParentGroup.RootPart.LocalId && | ||
4677 | m_vehicleParams != null && m_vehicleParams.CameraDecoupled) | ||
4678 | AddFlag(PrimFlags.CameraDecoupled); | ||
4679 | else | ||
4680 | RemFlag(PrimFlags.CameraDecoupled); | ||
4681 | ParentGroup.HasGroupChanged = true; | 4669 | ParentGroup.HasGroupChanged = true; |
4682 | ScheduleFullUpdate(); | 4670 | ScheduleFullUpdate(); |
4683 | } | 4671 | } |
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 2dc6f48..914644a 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1239,6 +1239,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
1239 | ParentPart = part; | 1239 | ParentPart = part; |
1240 | m_pos = PrevSitOffset; | 1240 | m_pos = PrevSitOffset; |
1241 | pos = part.GetWorldPosition(); | 1241 | pos = part.GetWorldPosition(); |
1242 | PhysicsActor partPhysActor = part.PhysActor; | ||
1243 | if(partPhysActor != null) | ||
1244 | { | ||
1245 | partPhysActor.OnPhysicsRequestingCameraData -= | ||
1246 | physActor_OnPhysicsRequestingCameraData; | ||
1247 | partPhysActor.OnPhysicsRequestingCameraData += | ||
1248 | physActor_OnPhysicsRequestingCameraData; | ||
1249 | } | ||
1242 | } | 1250 | } |
1243 | ParentUUID = UUID.Zero; | 1251 | ParentUUID = UUID.Zero; |
1244 | } | 1252 | } |