aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/TaskInventoryItem.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/TaskInventoryItem.cs17
1 files changed, 15 insertions, 2 deletions
diff --git a/OpenSim/Framework/TaskInventoryItem.cs b/OpenSim/Framework/TaskInventoryItem.cs
index ba2a306..fa514f0 100644
--- a/OpenSim/Framework/TaskInventoryItem.cs
+++ b/OpenSim/Framework/TaskInventoryItem.cs
@@ -64,9 +64,12 @@ namespace OpenSim.Framework
64 private UUID _permsGranter; 64 private UUID _permsGranter;
65 private int _permsMask; 65 private int _permsMask;
66 private int _type = 0; 66 private int _type = 0;
67 private UUID _oldID; 67 private UUID _oldID = UUID.Zero;
68 68
69 private bool _ownerChanged = false; 69 private bool _ownerChanged = false;
70
71 // This used ONLY during copy. It can't be relied on at other times!
72 private bool _scriptRunning = true;
70 73
71 public UUID AssetID { 74 public UUID AssetID {
72 get { 75 get {
@@ -330,6 +333,15 @@ namespace OpenSim.Framework
330 } 333 }
331 } 334 }
332 335
336 public bool ScriptRunning {
337 get {
338 return _scriptRunning;
339 }
340 set {
341 _scriptRunning = value;
342 }
343 }
344
333 // See ICloneable 345 // See ICloneable
334 346
335 #region ICloneable Members 347 #region ICloneable Members
@@ -347,7 +359,8 @@ namespace OpenSim.Framework
347 /// <param name="partID">The new part ID to which this item belongs</param> 359 /// <param name="partID">The new part ID to which this item belongs</param>
348 public void ResetIDs(UUID partID) 360 public void ResetIDs(UUID partID)
349 { 361 {
350 OldItemID = ItemID; 362 if (_oldID == UUID.Zero)
363 _oldID = ItemID;
351 ItemID = UUID.Random(); 364 ItemID = UUID.Random();
352 ParentPartID = partID; 365 ParentPartID = partID;
353 ParentID = partID; 366 ParentID = partID;