diff options
author | MW | 2007-08-16 16:31:32 +0000 |
---|---|---|
committer | MW | 2007-08-16 16:31:32 +0000 |
commit | 531f64a53bbd084dd8d0b33ae6c49821c74d718a (patch) | |
tree | 6e515f4d52a974b72a229f1fbc39253a7ba2a8a0 /OpenSim/Framework/Data.SQLite | |
parent | I will get it right, honestly! (diff) | |
download | opensim-SC_OLD-531f64a53bbd084dd8d0b33ae6c49821c74d718a.zip opensim-SC_OLD-531f64a53bbd084dd8d0b33ae6c49821c74d718a.tar.gz opensim-SC_OLD-531f64a53bbd084dd8d0b33ae6c49821c74d718a.tar.bz2 opensim-SC_OLD-531f64a53bbd084dd8d0b33ae6c49821c74d718a.tar.xz |
Taking Prims (SceneObjectGroups) in and out of inventory should now work and if left in inventory will still be there after restarts. (as with the rest of inventory it will only fully work in standalone mode with account authentication turned on).
Diffstat (limited to 'OpenSim/Framework/Data.SQLite')
-rw-r--r-- | OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs index 045fbee..fe494fb 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs | |||
@@ -447,6 +447,23 @@ namespace OpenSim.Framework.Data.SQLite | |||
447 | } | 447 | } |
448 | 448 | ||
449 | /// <summary> | 449 | /// <summary> |
450 | /// | ||
451 | /// </summary> | ||
452 | /// <param name="item"></param> | ||
453 | public void deleteInventoryItem(InventoryItemBase item) | ||
454 | { | ||
455 | DataTable inventoryItemTable = ds.Tables["inventoryitems"]; | ||
456 | |||
457 | DataRow inventoryRow = inventoryItemTable.Rows.Find(item.inventoryID); | ||
458 | if (inventoryRow != null) | ||
459 | { | ||
460 | inventoryRow.Delete(); | ||
461 | } | ||
462 | |||
463 | this.invItemsDa.Update(ds, "inventoryitems"); | ||
464 | } | ||
465 | |||
466 | /// <summary> | ||
450 | /// Adds a new folder specified by folder | 467 | /// Adds a new folder specified by folder |
451 | /// </summary> | 468 | /// </summary> |
452 | /// <param name="folder">The inventory folder</param> | 469 | /// <param name="folder">The inventory folder</param> |