diff options
author | Oren Hurvitz | 2013-10-22 09:45:18 +0300 |
---|---|---|
committer | Oren Hurvitz | 2014-03-24 18:00:39 +0100 |
commit | edc04d4184bb9ec224b27cc7b463bec6e4e65dde (patch) | |
tree | 31f4443e87c3ecd29bb720660b2d81f42a032ac3 /OpenSim | |
parent | Moved the linkage between LoginService and HGInventoryService to the config file (diff) | |
download | opensim-SC-edc04d4184bb9ec224b27cc7b463bec6e4e65dde.zip opensim-SC-edc04d4184bb9ec224b27cc7b463bec6e4e65dde.tar.gz opensim-SC-edc04d4184bb9ec224b27cc7b463bec6e4e65dde.tar.bz2 opensim-SC-edc04d4184bb9ec224b27cc7b463bec6e4e65dde.tar.xz |
When updating the CreatorId of an inventory item, automatically update the CreatorIdAsUuid field as well
Resolves http://opensimulator.org/mantis/view.php?id=6933
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/InventoryItemBase.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs index 558dfd0..5761200 100644 --- a/OpenSim/Framework/InventoryItemBase.cs +++ b/OpenSim/Framework/InventoryItemBase.cs | |||
@@ -82,12 +82,15 @@ namespace OpenSim.Framework | |||
82 | set | 82 | set |
83 | { | 83 | { |
84 | m_creatorId = value; | 84 | m_creatorId = value; |
85 | |||
86 | if ((m_creatorId == null) || !UUID.TryParse(m_creatorId, out m_creatorIdAsUuid)) | ||
87 | m_creatorIdAsUuid = UUID.Zero; | ||
85 | } | 88 | } |
86 | } | 89 | } |
87 | protected string m_creatorId; | 90 | protected string m_creatorId; |
88 | 91 | ||
89 | /// <value> | 92 | /// <value> |
90 | /// The CreatorId expressed as a UUID.tely | 93 | /// The CreatorId expressed as a UUID. |
91 | /// </value> | 94 | /// </value> |
92 | public UUID CreatorIdAsUuid | 95 | public UUID CreatorIdAsUuid |
93 | { | 96 | { |