mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
change my previus fix, change xengine to expect SOG and not attachments module, this way not breaking other script engines or modules out there for no valid reason
This commit is contained in:
@@ -408,10 +408,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
|
||||
public void attach(uint localID, UUID itemID, UUID avatar)
|
||||
{
|
||||
myScriptEngine.PostObjectEvent(localID, new EventParams(
|
||||
SceneObjectGroup grp = myScriptEngine.World.GetSceneObjectGroup(localID);
|
||||
if(grp == null)
|
||||
return;
|
||||
|
||||
foreach(SceneObjectPart part in grp.Parts)
|
||||
{
|
||||
myScriptEngine.PostObjectEvent(part.LocalId, new EventParams(
|
||||
"attach",new object[] {
|
||||
new LSL_Types.LSLString(avatar.ToString()) },
|
||||
new DetectParams[0]));
|
||||
}
|
||||
}
|
||||
|
||||
// dataserver: not handled here
|
||||
|
||||
Reference in New Issue
Block a user