* didn't save :P so, this is the other half to my last commit

ThreadPoolClientBranch
Teravus Ovares 2008-02-07 06:11:02 +00:00
parent 9bfd4ec83d
commit 0e771c8d39
1 changed files with 20 additions and 1 deletions

View File

@ -350,7 +350,26 @@ namespace OpenSim.Region.Environment.Scenes
TriggerScriptChangedEvent(Changed.INVENTORY); TriggerScriptChangedEvent(Changed.INVENTORY);
HasInventoryChanged = true; HasInventoryChanged = true;
int scriptcount = 0;
lock (m_taskInventory)
{
foreach (TaskInventoryItem item in m_taskInventory.Values)
{
if (item.Type == 10)
{
scriptcount++;
}
}
}
if (scriptcount <= 0)
{
RemFlag(LLObject.ObjectFlags.Scripted);
ScheduleFullUpdate();
}
ScheduleFullUpdate();
return type; return type;
} }
else else