* didn't save :P so, this is the other half to my last commit
parent
9bfd4ec83d
commit
0e771c8d39
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue