mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Had to rename Rotation in SceneObjectGroup to GroupRotation to stop conflict with Rotation in entitybase (couldn't override as they are different types (LL vs Axiom) and didn't want to add new).
When you take prims into inventory (or delete them), they should now be removed from the prim datastore, so they no longer reappear in-world when you restart opensim.
This commit is contained in:
@@ -475,7 +475,24 @@ namespace OpenSim.DataStore.MonoSqliteStorage
|
||||
|
||||
public void RemoveObject(LLUUID obj)
|
||||
{
|
||||
// TODO: remove code
|
||||
DataTable prims = ds.Tables["prims"];
|
||||
DataTable shapes = ds.Tables["primshapes"];
|
||||
|
||||
string selectExp = "SceneGroupID = '" + obj.ToString() + "'";
|
||||
DataRow[] primRows = prims.Select(selectExp);
|
||||
foreach (DataRow row in primRows)
|
||||
{
|
||||
LLUUID uuid = new LLUUID((string)row["UUID"]);
|
||||
DataRow shapeRow = shapes.Rows.Find(uuid);
|
||||
if (shapeRow != null)
|
||||
{
|
||||
shapeRow.Delete();
|
||||
}
|
||||
row.Delete();
|
||||
}
|
||||
|
||||
primDa.Update(ds, "prims");
|
||||
shapeDa.Update(ds, "primshapes");
|
||||
}
|
||||
|
||||
public List<SceneObjectGroup> LoadObjects()
|
||||
|
||||
Reference in New Issue
Block a user