diff options
Diffstat (limited to 'OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite')
-rw-r--r-- | OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs index ac22b42..4d11dfb 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs | |||
@@ -176,17 +176,6 @@ namespace OpenSim.DataStore.MonoSqlite | |||
176 | } | 176 | } |
177 | } | 177 | } |
178 | 178 | ||
179 | private bool Stopped(SceneObjectPart prim) | ||
180 | { | ||
181 | double threshold = 0.02; | ||
182 | return (Math.Abs(prim.Velocity.X) < threshold && | ||
183 | Math.Abs(prim.Velocity.Y) < threshold && | ||
184 | Math.Abs(prim.Velocity.Z) < threshold && | ||
185 | Math.Abs(prim.AngularVelocity.X) < threshold && | ||
186 | Math.Abs(prim.AngularVelocity.Y) < threshold && | ||
187 | Math.Abs(prim.AngularVelocity.Z) < threshold); | ||
188 | } | ||
189 | |||
190 | public void StoreObject(SceneObjectGroup obj, LLUUID regionUUID) | 179 | public void StoreObject(SceneObjectGroup obj, LLUUID regionUUID) |
191 | { | 180 | { |
192 | lock (ds) | 181 | lock (ds) |
@@ -198,7 +187,7 @@ namespace OpenSim.DataStore.MonoSqlite | |||
198 | MainLog.Instance.Verbose("DATASTORE", "Adding obj: " + obj.UUID + " to region: " + regionUUID); | 187 | MainLog.Instance.Verbose("DATASTORE", "Adding obj: " + obj.UUID + " to region: " + regionUUID); |
199 | addPrim(prim, Util.ToRawUuidString(obj.UUID), Util.ToRawUuidString(regionUUID)); | 188 | addPrim(prim, Util.ToRawUuidString(obj.UUID), Util.ToRawUuidString(regionUUID)); |
200 | } | 189 | } |
201 | else if (Stopped(prim)) | 190 | else if (prim.Stopped) |
202 | { | 191 | { |
203 | MainLog.Instance.Verbose("DATASTORE", | 192 | MainLog.Instance.Verbose("DATASTORE", |
204 | "Adding stopped obj: " + obj.UUID + " to region: " + regionUUID); | 193 | "Adding stopped obj: " + obj.UUID + " to region: " + regionUUID); |