aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs21
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