diff options
author | Teravus Ovares | 2008-02-07 06:11:02 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-02-07 06:11:02 +0000 |
commit | 0e771c8d39f16e58cd9a8e1376318b811f806329 (patch) | |
tree | 2fd4a17c1d9dacf5f91a80d4ab9e7123e9630d74 /OpenSim | |
parent | Missed the appender change on the previous log4net config file sync. (diff) | |
download | opensim-SC_OLD-0e771c8d39f16e58cd9a8e1376318b811f806329.zip opensim-SC_OLD-0e771c8d39f16e58cd9a8e1376318b811f806329.tar.gz opensim-SC_OLD-0e771c8d39f16e58cd9a8e1376318b811f806329.tar.bz2 opensim-SC_OLD-0e771c8d39f16e58cd9a8e1376318b811f806329.tar.xz |
* didn't save :P so, this is the other half to my last commit
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index 94bf10e..62c3436 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |||
@@ -350,7 +350,26 @@ namespace OpenSim.Region.Environment.Scenes | |||
350 | TriggerScriptChangedEvent(Changed.INVENTORY); | 350 | TriggerScriptChangedEvent(Changed.INVENTORY); |
351 | 351 | ||
352 | HasInventoryChanged = true; | 352 | HasInventoryChanged = true; |
353 | 353 | ||
354 | int scriptcount = 0; | ||
355 | lock (m_taskInventory) | ||
356 | { | ||
357 | foreach (TaskInventoryItem item in m_taskInventory.Values) | ||
358 | { | ||
359 | if (item.Type == 10) | ||
360 | { | ||
361 | scriptcount++; | ||
362 | } | ||
363 | } | ||
364 | |||
365 | } | ||
366 | if (scriptcount <= 0) | ||
367 | { | ||
368 | RemFlag(LLObject.ObjectFlags.Scripted); | ||
369 | ScheduleFullUpdate(); | ||
370 | } | ||
371 | ScheduleFullUpdate(); | ||
372 | |||
354 | return type; | 373 | return type; |
355 | } | 374 | } |
356 | else | 375 | else |