From 2009d1aa01ca615dbcd4b69d3cab179741d9ee1f Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 3 Feb 2009 20:13:34 +0000 Subject: * Fission SceneObjectTests into basic and linking sets --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 8fb94b0..7564c69 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -3172,6 +3172,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api childPrim = null; break; } + if (linknum == ScriptBaseClass.LINK_ROOT) { // Restructuring Multiple Prims. @@ -3182,7 +3183,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api parentPrim.DelinkFromGroup(part.LocalId, true); } parentPrim.TriggerScriptChangedEvent(Changed.LINK); - if (parts.Count > 0) { + + if (parts.Count > 0) + { SceneObjectPart newRoot = parts[0]; parts.Remove(newRoot); foreach (SceneObjectPart part in parts) @@ -3196,6 +3199,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api { if (childPrim == null) return; + parentPrim.DelinkFromGroup(childPrim.LocalId, true); parentPrim.TriggerScriptChangedEvent(Changed.LINK); } -- cgit v1.1