diff options
author | Justin Clark-Casey (justincc) | 2012-10-18 23:02:57 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-10-18 23:02:57 +0100 |
commit | a960273e91e43eedbab923539d817b81c0e50dbd (patch) | |
tree | e8b9dafd855bcbf780d0d3ce97dfa1802c4edb83 /OpenSim/Region/Framework/Scenes | |
parent | If we're avoiding printing a long request warning for a GetTexture CAP call, ... (diff) | |
download | opensim-SC_OLD-a960273e91e43eedbab923539d817b81c0e50dbd.zip opensim-SC_OLD-a960273e91e43eedbab923539d817b81c0e50dbd.tar.gz opensim-SC_OLD-a960273e91e43eedbab923539d817b81c0e50dbd.tar.bz2 opensim-SC_OLD-a960273e91e43eedbab923539d817b81c0e50dbd.tar.xz |
Add number of inventory items to information displayed via "show part" console command
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 821fd81..bdb0446 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -92,6 +92,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
92 | QueryScriptStates(); | 92 | QueryScriptStates(); |
93 | } | 93 | } |
94 | } | 94 | } |
95 | |||
96 | public int Count | ||
97 | { | ||
98 | get | ||
99 | { | ||
100 | lock (m_items) | ||
101 | return m_items.Count; | ||
102 | } | ||
103 | } | ||
95 | 104 | ||
96 | /// <summary> | 105 | /// <summary> |
97 | /// Constructor | 106 | /// Constructor |