aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2013-01-07 10:35:55 +0000
committerUbitUmarov2013-01-07 10:35:55 +0000
commitca40e656ab4f0915b37356a9f6394f93cd1119a3 (patch)
tree689e2bc99a750c182e2d739977c5fe8679c604ce
parentdon't try to read geom positions outside main ode thread :( (diff)
downloadopensim-SC_OLD-ca40e656ab4f0915b37356a9f6394f93cd1119a3.zip
opensim-SC_OLD-ca40e656ab4f0915b37356a9f6394f93cd1119a3.tar.gz
opensim-SC_OLD-ca40e656ab4f0915b37356a9f6394f93cd1119a3.tar.bz2
opensim-SC_OLD-ca40e656ab4f0915b37356a9f6394f93cd1119a3.tar.xz
in raycast for camera exclude self detection
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 5087882..4504e18 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1415,8 +1415,9 @@ namespace OpenSim.Region.Framework.Scenes
1415 1415
1416 if (m_followCamAuto) 1416 if (m_followCamAuto)
1417 { 1417 {
1418 if (hitYN) 1418 if (hitYN && localid != LocalId)
1419 { 1419 {
1420
1420 CameraConstraintActive = true; 1421 CameraConstraintActive = true;
1421 //m_log.DebugFormat("[RAYCASTRESULT]: {0}, {1}, {2}, {3}", hitYN, collisionPoint, localid, distance); 1422 //m_log.DebugFormat("[RAYCASTRESULT]: {0}, {1}, {2}, {3}", hitYN, collisionPoint, localid, distance);
1422 1423
@@ -2282,7 +2283,6 @@ namespace OpenSim.Region.Framework.Scenes
2282 ControllingClient.SendAlertMessage(" Sit position on restricted land, try another spot"); 2283 ControllingClient.SendAlertMessage(" Sit position on restricted land, try another spot");
2283 return; 2284 return;
2284 } 2285 }
2285// m_log.InfoFormat("physsit {0} {1}", offset.ToString(),Orientation.ToString());
2286 2286
2287 RemoveFromPhysicalScene(); 2287 RemoveFromPhysicalScene();
2288 2288
@@ -2293,7 +2293,6 @@ namespace OpenSim.Region.Framework.Scenes
2293 2293
2294 part.AddSittingAvatar(UUID); 2294 part.AddSittingAvatar(UUID);
2295 2295
2296
2297 Vector3 cameraAtOffset = part.GetCameraAtOffset(); 2296 Vector3 cameraAtOffset = part.GetCameraAtOffset();
2298 Vector3 cameraEyeOffset = part.GetCameraEyeOffset(); 2297 Vector3 cameraEyeOffset = part.GetCameraEyeOffset();
2299 bool forceMouselook = part.GetForceMouselook(); 2298 bool forceMouselook = part.GetForceMouselook();