diff options
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 | } |