aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
index e5373c3..b1de341 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
@@ -962,6 +962,9 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
962 { 962 {
963 part.CreateSelected = true; 963 part.CreateSelected = true;
964 } 964 }
965
966 if (rootPart.Shape.PCode == (byte)PCode.Prim)
967 group.ClearPartAttachmentData();
965 } 968 }
966 969
967 group.ResetIDs(); 970 group.ResetIDs();
@@ -993,9 +996,6 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
993 996
994 if (!attachment) 997 if (!attachment)
995 { 998 {
996 if (rootPart.Shape.PCode == (byte)PCode.Prim)
997 group.ClearPartAttachmentData();
998
999 // Fire on_rez 999 // Fire on_rez
1000 group.CreateScriptInstances(0, true, m_Scene.DefaultScriptEngine, 1); 1000 group.CreateScriptInstances(0, true, m_Scene.DefaultScriptEngine, 1);
1001 rootPart.ParentGroup.ResumeScripts(); 1001 rootPart.ParentGroup.ResumeScripts();