aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
index ab2abed..1d122d2 100644
--- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs
@@ -245,7 +245,15 @@ namespace OpenSim.Region.Environment.Scenes
245 245
246 public Vector3 Lookat 246 public Vector3 Lookat
247 { 247 {
248 get { return Util.GetNormalizedVector(new Vector3(m_CameraAtAxis.X, m_CameraAtAxis.Y, 0)); } 248 get
249 {
250 Vector3 a = new Vector3(m_CameraAtAxis.X, m_CameraAtAxis.Y, 0);
251
252 if(a == Vector3.Zero)
253 return a;
254
255 return Util.GetNormalizedVector(a);
256 }
249 } 257 }
250 258
251 private readonly string m_firstname; 259 private readonly string m_firstname;