aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/LLQuaternionUserType.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-12-01 18:42:14 +0000
committerJustin Clarke Casey2008-12-01 18:42:14 +0000
commit80520206fcd4c8c85eb28b4800c42136365b164d (patch)
tree9a5f583028198b44b0dc98b409fa410a4dab6418 /OpenSim/Data/NHibernate/LLQuaternionUserType.cs
parent* Temporarily revert nhibernate.dll to the previous one (diff)
downloadopensim-SC_OLD-80520206fcd4c8c85eb28b4800c42136365b164d.zip
opensim-SC_OLD-80520206fcd4c8c85eb28b4800c42136365b164d.tar.gz
opensim-SC_OLD-80520206fcd4c8c85eb28b4800c42136365b164d.tar.bz2
opensim-SC_OLD-80520206fcd4c8c85eb28b4800c42136365b164d.tar.xz
* Unforunately it turns out not to be that simple. Revert the rest of r7560 for now.
Diffstat (limited to 'OpenSim/Data/NHibernate/LLQuaternionUserType.cs')
-rw-r--r--OpenSim/Data/NHibernate/LLQuaternionUserType.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenSim/Data/NHibernate/LLQuaternionUserType.cs b/OpenSim/Data/NHibernate/LLQuaternionUserType.cs
index 0cd5c6f..7431433 100644
--- a/OpenSim/Data/NHibernate/LLQuaternionUserType.cs
+++ b/OpenSim/Data/NHibernate/LLQuaternionUserType.cs
@@ -78,11 +78,7 @@ namespace OpenSim.Data.NHibernate
78 int w = rs.GetOrdinal(names[3]); 78 int w = rs.GetOrdinal(names[3]);
79 if (!rs.IsDBNull(x)) 79 if (!rs.IsDBNull(x))
80 { 80 {
81 float X = (Single)Convert.ToDouble(rs[x].ToString()); 81 quat = new Quaternion((Single)rs[x], (Single)rs[y], (Single)rs[z], (Single)rs[w]);
82 float Y = (Single)Convert.ToDouble(rs[y].ToString());
83 float Z = (Single)Convert.ToDouble(rs[z].ToString());
84 float W = (Single)Convert.ToDouble(rs[w].ToString());
85 quat = new Quaternion(X, Y, Z, W);
86 } 82 }
87 return quat; 83 return quat;
88 } 84 }