diff options
author | Adam Frisby | 2008-12-01 07:50:38 +0000 |
---|---|---|
committer | Adam Frisby | 2008-12-01 07:50:38 +0000 |
commit | 4ed7ca62b153817a142ded621cc5c5c1b1c055c5 (patch) | |
tree | e8cad8abe60b6becd22da1a8d2c2dfefbf6f9784 /OpenSim/Data/NHibernate/LLQuaternionUserType.cs | |
parent | Mantis #2729 (diff) | |
download | opensim-SC_OLD-4ed7ca62b153817a142ded621cc5c5c1b1c055c5.zip opensim-SC_OLD-4ed7ca62b153817a142ded621cc5c5c1b1c055c5.tar.gz opensim-SC_OLD-4ed7ca62b153817a142ded621cc5c5c1b1c055c5.tar.bz2 opensim-SC_OLD-4ed7ca62b153817a142ded621cc5c5c1b1c055c5.tar.xz |
* From Mantis#2701 - Implements NHibernate data adapter, adds support for MsSql2005 to NHibernate.
* Patch courtesy of Adminotech and realXtend. Thanks!
Diffstat (limited to 'OpenSim/Data/NHibernate/LLQuaternionUserType.cs')
-rw-r--r-- | OpenSim/Data/NHibernate/LLQuaternionUserType.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Data/NHibernate/LLQuaternionUserType.cs b/OpenSim/Data/NHibernate/LLQuaternionUserType.cs index 7431433..0cd5c6f 100644 --- a/OpenSim/Data/NHibernate/LLQuaternionUserType.cs +++ b/OpenSim/Data/NHibernate/LLQuaternionUserType.cs | |||
@@ -78,7 +78,11 @@ 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 | quat = new Quaternion((Single)rs[x], (Single)rs[y], (Single)rs[z], (Single)rs[w]); | 81 | float X = (Single)Convert.ToDouble(rs[x].ToString()); |
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); | ||
82 | } | 86 | } |
83 | return quat; | 87 | return quat; |
84 | } | 88 | } |