mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Changed SceneObjectGroup to store parts with the fast and thread-safe MapAndArray collection
This commit is contained in:
@@ -209,15 +209,12 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
else
|
||||
Type = 0x02; // Passive
|
||||
|
||||
lock (part.ParentGroup.Children)
|
||||
foreach (SceneObjectPart p in part.ParentGroup.Parts)
|
||||
{
|
||||
foreach (SceneObjectPart p in part.ParentGroup.Children.Values)
|
||||
if (p.Inventory.ContainsScripts())
|
||||
{
|
||||
if (p.Inventory.ContainsScripts())
|
||||
{
|
||||
Type |= 0x08; // Scripted
|
||||
break;
|
||||
}
|
||||
Type |= 0x08; // Scripted
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user