diff options
author | Adam Frisby | 2008-10-12 00:11:22 +0000 |
---|---|---|
committer | Adam Frisby | 2008-10-12 00:11:22 +0000 |
commit | d10a578096e235855238721c856aa7d7112e12d1 (patch) | |
tree | 85710b6e006e1e781767d75bddcab13175835355 /OpenSim/Region/Environment/Scenes | |
parent | Fix the fix. Child prims were failing to load. (diff) | |
download | opensim-SC_OLD-d10a578096e235855238721c856aa7d7112e12d1.zip opensim-SC_OLD-d10a578096e235855238721c856aa7d7112e12d1.tar.gz opensim-SC_OLD-d10a578096e235855238721c856aa7d7112e12d1.tar.bz2 opensim-SC_OLD-d10a578096e235855238721c856aa7d7112e12d1.tar.xz |
* Fixed two major unhandled exceptions discovered during the Pub Quiz on friday.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/ScenePresence.cs | 10 |
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; |