mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
* didn't save :P so, this is the other half to my last commit
This commit is contained in:
@@ -350,7 +350,26 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
TriggerScriptChangedEvent(Changed.INVENTORY);
|
||||
|
||||
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;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user